Lines Matching defs:table
63 * belongs to the committing transaction. Accesses to the second hash table
64 * happen only from the kjournald and no other thread touches this table. Also
70 * All users operating on the hash table belonging to the running transaction
73 * the hash table j_revoke_lock is used.
110 /* The revoke table is just a simple hash table of revoke records. */
113 /* It is conceivable that we might want a larger hash table
129 /* Utility functions to maintain the revoke table */
158 /* Find a revoke record in the journal's hash table. */
222 struct jbd2_revoke_table_s *table;
224 table = kmem_cache_alloc(jbd2_revoke_table_cache, GFP_KERNEL);
225 if (!table)
231 table->hash_size = hash_size;
232 table->hash_shift = shift;
233 table->hash_table =
235 if (!table->hash_table) {
236 kmem_cache_free(jbd2_revoke_table_cache, table);
237 table = NULL;
242 INIT_LIST_HEAD(&table->hash_table[tmp]);
245 return table;
248 static void jbd2_journal_destroy_revoke_table(struct jbd2_revoke_table_s *table)
253 for (i = 0; i < table->hash_size; i++) {
254 hash_list = &table->hash_table[i];
258 kfree(table->hash_table);
259 kmem_cache_free(jbd2_revoke_table_cache, table);
262 /* Initialise the revoke table for a given journal to a given size. */
289 /* Destroy a journal's revoke table. The table must already be empty! */
481 * revoke table to reflect there is no revoked buffers in the next
509 /* journal_switch_revoke table select j_revoke for next transaction
544 /* select revoke table for committing transaction */
673 * empty the revoke table after recovery.
722 * Finally, once recovery is over, we need to clear the revoke table so