Lines Matching refs:record
144 struct jbd_revoke_record_s *record; in insert_revoke_hash() local
147 record = kmem_cache_alloc(revoke_record_cache, GFP_NOFS); in insert_revoke_hash()
148 if (!record) in insert_revoke_hash()
151 record->sequence = seq; in insert_revoke_hash()
152 record->blocknr = blocknr; in insert_revoke_hash()
155 list_add(&record->hash, hash_list); in insert_revoke_hash()
173 struct jbd_revoke_record_s *record; in find_revoke_record() local
178 record = (struct jbd_revoke_record_s *) hash_list->next; in find_revoke_record()
179 while (&(record->hash) != hash_list) { in find_revoke_record()
180 if (record->blocknr == blocknr) { in find_revoke_record()
182 return record; in find_revoke_record()
184 record = (struct jbd_revoke_record_s *) record->hash.next; in find_revoke_record()
425 struct jbd_revoke_record_s *record; in journal_cancel_revoke() local
445 record = find_revoke_record(journal, bh->b_blocknr); in journal_cancel_revoke()
446 if (record) { in journal_cancel_revoke()
450 list_del(&record->hash); in journal_cancel_revoke()
452 kmem_cache_free(revoke_record_cache, record); in journal_cancel_revoke()
459 record = find_revoke_record(journal, bh->b_blocknr); in journal_cancel_revoke()
460 J_ASSERT_JH(jh, record == NULL); in journal_cancel_revoke()
495 struct jbd_revoke_record_s *record; in journal_clear_buffer_revoked_flags() local
497 record = (struct jbd_revoke_record_s *)list_entry; in journal_clear_buffer_revoked_flags()
499 record->blocknr, in journal_clear_buffer_revoked_flags()
534 struct jbd_revoke_record_s *record; in journal_write_revoke_records() local
551 record = (struct jbd_revoke_record_s *) in journal_write_revoke_records()
555 record, write_op); in journal_write_revoke_records()
557 list_del(&record->hash); in journal_write_revoke_records()
558 kmem_cache_free(revoke_record_cache, record); in journal_write_revoke_records()
575 struct jbd_revoke_record_s *record, in write_one_revoke_record() argument
618 cpu_to_be32(record->blocknr); in write_one_revoke_record()
677 struct jbd_revoke_record_s *record; in journal_set_revoke() local
679 record = find_revoke_record(journal, blocknr); in journal_set_revoke()
680 if (record) { in journal_set_revoke()
683 if (tid_gt(sequence, record->sequence)) in journal_set_revoke()
684 record->sequence = sequence; in journal_set_revoke()
701 struct jbd_revoke_record_s *record; in journal_test_revoke() local
703 record = find_revoke_record(journal, blocknr); in journal_test_revoke()
704 if (!record) in journal_test_revoke()
706 if (tid_gt(sequence, record->sequence)) in journal_test_revoke()
720 struct jbd_revoke_record_s *record; in journal_clear_revoke() local
728 record = (struct jbd_revoke_record_s*) hash_list->next; in journal_clear_revoke()
729 list_del(&record->hash); in journal_clear_revoke()
730 kmem_cache_free(revoke_record_cache, record); in journal_clear_revoke()