Home | History | Annotate | Download | only in e2fsck

Lines Matching refs:table

66  * belongs to the committing transaction. Accesses to the second hash table
67 * happen only from the kjournald and no other thread touches this table. Also
73 * All users operating on the hash table belonging to the running transaction
76 * the hash table j_revoke_lock is used.
112 /* The revoke table is just a simple hash table of revoke records. */
115 /* It is conceivable that we might want a larger hash table
131 /* Utility functions to maintain the revoke table */
136 struct jbd2_revoke_table_s *table = journal->j_revoke;
137 int hash_shift = table->hash_shift;
142 (hash << (hash_shift - 12))) & (table->hash_size - 1);
172 /* Find a revoke record in the journal's hash table. */
232 struct jbd2_revoke_table_s *table;
234 table = kmem_cache_alloc(jbd2_revoke_table_cache, GFP_KERNEL);
235 if (!table)
241 table->hash_size = hash_size;
242 table->hash_shift = shift;
243 table->hash_table =
245 if (!table->hash_table) {
246 kmem_cache_free(jbd2_revoke_table_cache, table);
247 table = NULL;
252 INIT_LIST_HEAD(&table->hash_table[tmp]);
255 return table;
258 static void journal_destroy_revoke_table(struct jbd2_revoke_table_s *table)
263 for (i = 0; i < table->hash_size; i++) {
264 hash_list = &table->hash_table[i];
268 kfree(table->hash_table);
269 kmem_cache_free(jbd2_revoke_table_cache, table);
272 /* Initialise the revoke table for a given journal to a given size. */
298 /* Destroy a journal's revoke table. The table must already be empty! */
484 * revoke table to reflect there is no revoked buffers in the next
512 /* journal_switch_revoke table select j_revoke for next transaction
548 /* select revoke table for committing transaction */
700 * empty the revoke table after recovery.
749 * Finally, once recovery is over, we need to clear the revoke table so