Lines Matching refs:record

140 	struct jbd2_revoke_record_s *record;  in insert_revoke_hash()  local
145 record = kmem_cache_alloc(jbd2_revoke_record_cache, gfp_mask); in insert_revoke_hash()
146 if (!record) in insert_revoke_hash()
149 record->sequence = seq; in insert_revoke_hash()
150 record->blocknr = blocknr; in insert_revoke_hash()
153 list_add(&record->hash, hash_list); in insert_revoke_hash()
164 struct jbd2_revoke_record_s *record; in find_revoke_record() local
169 record = (struct jbd2_revoke_record_s *) hash_list->next; in find_revoke_record()
170 while (&(record->hash) != hash_list) { in find_revoke_record()
171 if (record->blocknr == blocknr) { in find_revoke_record()
173 return record; in find_revoke_record()
175 record = (struct jbd2_revoke_record_s *) record->hash.next; in find_revoke_record()
419 struct jbd2_revoke_record_s *record; in jbd2_journal_cancel_revoke() local
439 record = find_revoke_record(journal, bh->b_blocknr); in jbd2_journal_cancel_revoke()
440 if (record) { in jbd2_journal_cancel_revoke()
444 list_del(&record->hash); in jbd2_journal_cancel_revoke()
446 kmem_cache_free(jbd2_revoke_record_cache, record); in jbd2_journal_cancel_revoke()
453 record = find_revoke_record(journal, bh->b_blocknr); in jbd2_journal_cancel_revoke()
454 J_ASSERT_JH(jh, record == NULL); in jbd2_journal_cancel_revoke()
489 struct jbd2_revoke_record_s *record; in jbd2_clear_buffer_revoked_flags() local
491 record = (struct jbd2_revoke_record_s *)list_entry; in jbd2_clear_buffer_revoked_flags()
493 record->blocknr, in jbd2_clear_buffer_revoked_flags()
529 struct jbd2_revoke_record_s *record; in jbd2_journal_write_revoke_records() local
546 record = (struct jbd2_revoke_record_s *) in jbd2_journal_write_revoke_records()
549 &descriptor, &offset, record); 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()
569 struct jbd2_revoke_record_s *record) in write_one_revoke_record() argument
619 cpu_to_be64(record->blocknr); in write_one_revoke_record()
622 cpu_to_be32(record->blocknr); in write_one_revoke_record()
681 struct jbd2_revoke_record_s *record; in jbd2_journal_set_revoke() local
683 record = find_revoke_record(journal, blocknr); in jbd2_journal_set_revoke()
684 if (record) { in jbd2_journal_set_revoke()
687 if (tid_gt(sequence, record->sequence)) in jbd2_journal_set_revoke()
688 record->sequence = sequence; in jbd2_journal_set_revoke()
705 struct jbd2_revoke_record_s *record; in jbd2_journal_test_revoke() local
707 record = find_revoke_record(journal, blocknr); in jbd2_journal_test_revoke()
708 if (!record) in jbd2_journal_test_revoke()
710 if (tid_gt(sequence, record->sequence)) in jbd2_journal_test_revoke()
724 struct jbd2_revoke_record_s *record; in jbd2_journal_clear_revoke() local
732 record = (struct jbd2_revoke_record_s*) hash_list->next; in jbd2_journal_clear_revoke()
733 list_del(&record->hash); in jbd2_journal_clear_revoke()
734 kmem_cache_free(jbd2_revoke_record_cache, record); in jbd2_journal_clear_revoke()