Lines Matching refs:current_entry
102 struct numbered_block_mapping *current_entry;
939 if (repair->current_entry >= repair->entries)
955 * @current_entry: The entry to search from.
963 struct numbered_block_mapping *current_entry, bool needs_sort)
967 /* If current_entry is invalid, return immediately. */
968 if (current_entry < repair->entries)
969 return current_entry;
971 current_page = current_entry->block_map_slot.pbn;
973 /* Decrement current_entry until it's out of bounds or on a different page. */
974 while ((current_entry >= repair->entries) &&
975 (current_entry->block_map_slot.pbn == current_page)) {
979 VDO_ASSERT_LOG_ONLY(just_sorted_entry < current_entry,
983 current_entry--;
986 return current_entry;
997 struct numbered_block_mapping *current_entry = starting_entry;
999 while (current_entry != ending_entry) {
1000 page->entries[current_entry->block_map_slot.slot] = current_entry->block_map_entry;
1001 current_entry--;
1078 find_entry_starting_next_page(repair, repair->current_entry,
1080 apply_journal_entries_to_page(page, repair->current_entry,
1082 repair->current_entry = start_of_next_page;
1089 repair->pbn = repair->current_entry->block_map_slot.pbn;
1130 repair->current_entry = &repair->entries[repair->block_map_entry_count - 1];
1132 VDO_ASSERT_LOG_ONLY(first_sorted_entry == repair->current_entry,
1137 repair->pbn = repair->current_entry->block_map_slot.pbn;
1138 repair->current_unfetched_entry = repair->current_entry;