Lines Matching refs:record
143 struct jbd2_revoke_record_s *record; in insert_revoke_hash() local
148 record = kmem_cache_alloc(jbd2_revoke_record_cache, gfp_mask); in insert_revoke_hash()
149 if (!record) in insert_revoke_hash()
152 record->sequence = seq; in insert_revoke_hash()
153 record->blocknr = blocknr; in insert_revoke_hash()
156 list_add(&record->hash, hash_list); in insert_revoke_hash()
167 struct jbd2_revoke_record_s *record; in find_revoke_record() local
172 record = (struct jbd2_revoke_record_s *) hash_list->next; in find_revoke_record()
173 while (&(record->hash) != hash_list) { in find_revoke_record()
174 if (record->blocknr == blocknr) { in find_revoke_record()
176 return record; in find_revoke_record()
178 record = (struct jbd2_revoke_record_s *) record->hash.next; in find_revoke_record()
417 struct jbd2_revoke_record_s *record; in jbd2_journal_cancel_revoke() local
437 record = find_revoke_record(journal, bh->b_blocknr); in jbd2_journal_cancel_revoke()
438 if (record) { in jbd2_journal_cancel_revoke()
442 list_del(&record->hash); in jbd2_journal_cancel_revoke()
444 kmem_cache_free(jbd2_revoke_record_cache, record); in jbd2_journal_cancel_revoke()
451 record = find_revoke_record(journal, bh->b_blocknr); in jbd2_journal_cancel_revoke()
452 J_ASSERT_JH(jh, record == NULL); in jbd2_journal_cancel_revoke()
487 struct jbd2_revoke_record_s *record; in jbd2_clear_buffer_revoked_flags() local
489 record = (struct jbd2_revoke_record_s *)list_entry; in jbd2_clear_buffer_revoked_flags()
491 record->blocknr, in jbd2_clear_buffer_revoked_flags()
528 struct jbd2_revoke_record_s *record; in jbd2_journal_write_revoke_records() local
545 record = (struct jbd2_revoke_record_s *) in jbd2_journal_write_revoke_records()
549 record, write_op); in jbd2_journal_write_revoke_records()
551 list_del(&record->hash); in jbd2_journal_write_revoke_records()
552 kmem_cache_free(jbd2_revoke_record_cache, record); in jbd2_journal_write_revoke_records()
570 struct jbd2_revoke_record_s *record, in write_one_revoke_record() argument
624 cpu_to_be64(record->blocknr); in write_one_revoke_record()
627 cpu_to_be32(record->blocknr); in write_one_revoke_record()
703 struct jbd2_revoke_record_s *record; in jbd2_journal_set_revoke() local
705 record = find_revoke_record(journal, blocknr); in jbd2_journal_set_revoke()
706 if (record) { in jbd2_journal_set_revoke()
709 if (tid_gt(sequence, record->sequence)) in jbd2_journal_set_revoke()
710 record->sequence = sequence; in jbd2_journal_set_revoke()
727 struct jbd2_revoke_record_s *record; in jbd2_journal_test_revoke() local
729 record = find_revoke_record(journal, blocknr); in jbd2_journal_test_revoke()
730 if (!record) in jbd2_journal_test_revoke()
732 if (tid_gt(sequence, record->sequence)) in jbd2_journal_test_revoke()
746 struct jbd2_revoke_record_s *record; in jbd2_journal_clear_revoke() local
754 record = (struct jbd2_revoke_record_s*) hash_list->next; in jbd2_journal_clear_revoke()
755 list_del(&record->hash); in jbd2_journal_clear_revoke()
756 kmem_cache_free(jbd2_revoke_record_cache, record); in jbd2_journal_clear_revoke()