Lines Matching refs:record

143 	struct jbd2_revoke_record_s *record;  in insert_revoke_hash()  local
146 record = kmem_cache_alloc(jbd2_revoke_record_cache, GFP_NOFS); in insert_revoke_hash()
147 if (!record) in insert_revoke_hash()
150 record->sequence = seq; in insert_revoke_hash()
151 record->blocknr = blocknr; in insert_revoke_hash()
154 list_add(&record->hash, hash_list); in insert_revoke_hash()
172 struct jbd2_revoke_record_s *record; in find_revoke_record() local
177 record = (struct jbd2_revoke_record_s *) hash_list->next; in find_revoke_record()
178 while (&(record->hash) != hash_list) { in find_revoke_record()
179 if (record->blocknr == blocknr) { in find_revoke_record()
181 return record; in find_revoke_record()
183 record = (struct jbd2_revoke_record_s *) record->hash.next; in find_revoke_record()
422 struct jbd2_revoke_record_s *record; in jbd2_journal_cancel_revoke() local
442 record = find_revoke_record(journal, bh->b_blocknr); in jbd2_journal_cancel_revoke()
443 if (record) { in jbd2_journal_cancel_revoke()
447 list_del(&record->hash); in jbd2_journal_cancel_revoke()
449 kmem_cache_free(jbd2_revoke_record_cache, record); in jbd2_journal_cancel_revoke()
456 record = find_revoke_record(journal, bh->b_blocknr); in jbd2_journal_cancel_revoke()
457 J_ASSERT_JH(jh, record == NULL); in jbd2_journal_cancel_revoke()
492 struct jbd2_revoke_record_s *record; in jbd2_clear_buffer_revoked_flags() local
494 record = (struct jbd2_revoke_record_s *)list_entry; in jbd2_clear_buffer_revoked_flags()
496 record->blocknr, in jbd2_clear_buffer_revoked_flags()
533 struct jbd2_revoke_record_s *record; in jbd2_journal_write_revoke_records() local
550 record = (struct jbd2_revoke_record_s *) in jbd2_journal_write_revoke_records()
554 record, write_op); in jbd2_journal_write_revoke_records()
556 list_del(&record->hash); in jbd2_journal_write_revoke_records()
557 kmem_cache_free(jbd2_revoke_record_cache, record); in jbd2_journal_write_revoke_records()
575 struct jbd2_revoke_record_s *record, in write_one_revoke_record() argument
629 cpu_to_be64(record->blocknr); in write_one_revoke_record()
632 cpu_to_be32(record->blocknr); in write_one_revoke_record()
708 struct jbd2_revoke_record_s *record; in jbd2_journal_set_revoke() local
710 record = find_revoke_record(journal, blocknr); in jbd2_journal_set_revoke()
711 if (record) { in jbd2_journal_set_revoke()
714 if (tid_gt(sequence, record->sequence)) in jbd2_journal_set_revoke()
715 record->sequence = sequence; in jbd2_journal_set_revoke()
732 struct jbd2_revoke_record_s *record; in jbd2_journal_test_revoke() local
734 record = find_revoke_record(journal, blocknr); in jbd2_journal_test_revoke()
735 if (!record) in jbd2_journal_test_revoke()
737 if (tid_gt(sequence, record->sequence)) in jbd2_journal_test_revoke()
751 struct jbd2_revoke_record_s *record; in jbd2_journal_clear_revoke() local
759 record = (struct jbd2_revoke_record_s*) hash_list->next; in jbd2_journal_clear_revoke()
760 list_del(&record->hash); in jbd2_journal_clear_revoke()
761 kmem_cache_free(jbd2_revoke_record_cache, record); in jbd2_journal_clear_revoke()