Lines Matching refs:journal

714 static struct packed_journal_sector * __must_check get_sector(struct recovery_journal *journal,  in get_sector()  argument
721 offset = ((vdo_get_recovery_journal_block_number(journal, sequence) * VDO_BLOCK_SIZE) + in get_sector()
798 struct recovery_journal *journal = vdo->recovery_journal; in add_slab_journal_entries() local
807 advance_points(repair, journal->entries_per_block)) { in add_slab_journal_entries()
1161 get_recovery_journal_block_header(struct recovery_journal *journal, char *data, in get_recovery_journal_block_header() argument
1165 vdo_get_recovery_journal_block_number(journal, sequence); in get_recovery_journal_block_header()
1183 static bool __must_check is_valid_recovery_journal_block(const struct recovery_journal *journal, in is_valid_recovery_journal_block() argument
1187 if ((header->nonce != journal->nonce) || in is_valid_recovery_journal_block()
1188 (header->recovery_count != journal->recovery_count)) in is_valid_recovery_journal_block()
1192 return (header->entry_count <= journal->entries_per_block); in is_valid_recovery_journal_block()
1208 static bool __must_check is_exact_recovery_journal_block(const struct recovery_journal *journal, in is_exact_recovery_journal_block() argument
1213 (is_valid_recovery_journal_block(journal, header, true))); in is_exact_recovery_journal_block()
1224 struct recovery_journal *journal = repair->completion.vdo->recovery_journal; in find_recovery_journal_head_and_tail() local
1233 repair->highest_tail = journal->tail; in find_recovery_journal_head_and_tail()
1234 for (i = 0; i < journal->size; i++) { in find_recovery_journal_head_and_tail()
1236 get_recovery_journal_block_header(journal, repair->journal_data, i); in find_recovery_journal_head_and_tail()
1238 if (!is_valid_recovery_journal_block(journal, &header, true)) { in find_recovery_journal_head_and_tail()
1243 if (vdo_get_recovery_journal_block_number(journal, header.sequence_number) != i) { in find_recovery_journal_head_and_tail()
1361 struct recovery_journal *journal, in extract_entries_from_block() argument
1368 get_recovery_journal_block_header(journal, repair->journal_data, in extract_entries_from_block()
1371 if (!is_exact_recovery_journal_block(journal, &header, sequence) || in extract_entries_from_block()
1380 get_sector(journal, repair->journal_data, sequence, i); in extract_entries_from_block()
1407 struct recovery_journal *journal = vdo->recovery_journal; in parse_journal_for_rebuild() local
1408 journal_entry_count_t entries_per_block = journal->entries_per_block; in parse_journal_for_rebuild()
1410 format = get_recovery_journal_block_header(journal, repair->journal_data, in parse_journal_for_rebuild()
1426 extract_entries_from_block(repair, journal, i, format, entries_per_block); in parse_journal_for_rebuild()
1518 struct recovery_journal *journal = vdo->recovery_journal; in compute_usages() local
1520 get_recovery_journal_block_header(journal, repair->journal_data, in compute_usages()
1557 struct recovery_journal *journal = repair->completion.vdo->recovery_journal; in parse_journal_for_recovery() local
1562 header = get_recovery_journal_block_header(journal, repair->journal_data, head); in parse_journal_for_recovery()
1575 header = get_recovery_journal_block_header(journal, repair->journal_data, i); in parse_journal_for_recovery()
1576 if (!is_exact_recovery_journal_block(journal, &header, i)) { in parse_journal_for_recovery()
1592 get_sector(journal, repair->journal_data, i, j); in parse_journal_for_recovery()
1616 if ((header.entry_count != journal->entries_per_block) || (block_entries > 0)) in parse_journal_for_recovery()
1699 struct recovery_journal *journal = vdo->recovery_journal; in vdo_repair() local
1700 physical_block_number_t pbn = journal->origin; in vdo_repair()
1701 block_count_t remaining = journal->size; in vdo_repair()