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()
425 struct jbd2_revoke_record_s *record; in jbd2_journal_cancel_revoke() local
445 record = find_revoke_record(journal, bh->b_blocknr); in jbd2_journal_cancel_revoke()
446 if (record) { in jbd2_journal_cancel_revoke()
450 list_del(&record->hash); in jbd2_journal_cancel_revoke()
452 kmem_cache_free(jbd2_revoke_record_cache, record); in jbd2_journal_cancel_revoke()
459 record = find_revoke_record(journal, bh->b_blocknr); in jbd2_journal_cancel_revoke()
460 J_ASSERT_JH(jh, record == NULL); in jbd2_journal_cancel_revoke()
495 struct jbd2_revoke_record_s *record; in jbd2_clear_buffer_revoked_flags() local
497 record = (struct jbd2_revoke_record_s *)list_entry; in jbd2_clear_buffer_revoked_flags()
499 record->blocknr, in jbd2_clear_buffer_revoked_flags()
535 struct jbd2_revoke_record_s *record; in jbd2_journal_write_revoke_records() local
552 record = (struct jbd2_revoke_record_s *) in jbd2_journal_write_revoke_records()
555 &descriptor, &offset, record); in jbd2_journal_write_revoke_records()
557 list_del(&record->hash); in jbd2_journal_write_revoke_records()
558 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
625 cpu_to_be64(record->blocknr); in write_one_revoke_record()
628 cpu_to_be32(record->blocknr); in write_one_revoke_record()
687 struct jbd2_revoke_record_s *record; in jbd2_journal_set_revoke() local
689 record = find_revoke_record(journal, blocknr); in jbd2_journal_set_revoke()
690 if (record) { in jbd2_journal_set_revoke()
693 if (tid_gt(sequence, record->sequence)) in jbd2_journal_set_revoke()
694 record->sequence = sequence; in jbd2_journal_set_revoke()
711 struct jbd2_revoke_record_s *record; in jbd2_journal_test_revoke() local
713 record = find_revoke_record(journal, blocknr); in jbd2_journal_test_revoke()
714 if (!record) in jbd2_journal_test_revoke()
716 if (tid_gt(sequence, record->sequence)) in jbd2_journal_test_revoke()
730 struct jbd2_revoke_record_s *record; in jbd2_journal_clear_revoke() local
738 record = (struct jbd2_revoke_record_s*) hash_list->next; in jbd2_journal_clear_revoke()
739 list_del(&record->hash); in jbd2_journal_clear_revoke()
740 kmem_cache_free(jbd2_revoke_record_cache, record); in jbd2_journal_clear_revoke()