Lines Matching full:record

19  * + Recovery: during recovery we record the transaction ID of all
36 * latter: journaling a block cancels any revoke record for that block
98 /* Each revoke record represents one single revoked block. During
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()
158 /* Find a revoke record in the journal's hash table. */
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()
364 * record against a buffer_head which is in jbd2_journal_revoke()
425 struct jbd2_revoke_record_s *record; in jbd2_journal_cancel_revoke() local
436 * full search for a revoke record. */ in jbd2_journal_cancel_revoke()
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()
567 * Write out one revoke record. We need to create a new descriptor
575 struct jbd2_revoke_record_s *record) in write_one_revoke_record() argument
601 /* Make sure we have a descriptor with space left for the record */ in write_one_revoke_record()
615 /* Record it so that we can wait for IO completion later */ in write_one_revoke_record()
625 cpu_to_be64(record->blocknr); in write_one_revoke_record()
628 cpu_to_be32(record->blocknr); in write_one_revoke_record()
666 * record all revoke records, including the tid of the latest instance
670 * (ie. has not been revoked by a revoke record in that or a subsequent
677 * First, setting revoke records. We create a new revoke record for
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()
691 /* If we have multiple occurrences, only record the in jbd2_journal_set_revoke()
692 * latest sequence number in the hashed 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()
702 * that block been revoked? A revoke record with a given transaction
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()