extract_new_mappings(9)
π extract_new_mappings(9) β Kernel API Manual energy
Okay bestie, welcome to the extract_new_mappings page, straight out of the Kernel API Manual π. It's a whole function, it takes one arg, and it's lowkey doing the lord's work in the VDO repair code. Let's get into it β¨
β¨ NAME β¨
extract_new_mappings β finds, like, all the valid new mappings that are gonna get applied to the block map. That's the whole vibe. π¦
πΈ SYNOPSIS πΈ
int extract_new_mappings (struct repair_completion *repair );
Yeah. That's it. One parameter, returns an int. Iconic minimalism. π
π ARGUMENTS π
repairβ the repair completion. That's your one (1) input, bestie.<italic>repair</italic>is literally the entire personality of this function call. π«Ά
π DESCRIPTION π
So here's the tea β: the mappings get extracted from the journal and then stored in a sortable array. Why tho? Because that way, all of the mappings that need to be applied to a given block map page can be done in a single page fetch. One fetch. One trip. No redundant page-pulling nonsense. Efficiency ate. π₯
That's the whole strategy β pull 'em out, sort 'em nice, then hit each block map page exactly once. Main character energy from the journal, honestly. π
β SEE ALSO β
All these fellow icons live in the kernel file ./drivers/md/dm-vdo/repair.c β go say hi π§:
as_repair_completion(9)abort_repair(9)abort_on_error(9)drain_slab_depot(9)flush_block_map_updates(9)handle_page_load_error(9)unmap_entry(9)remove_out_of_bounds_entries(9)process_slot(9)rebuild_reference_counts_from_page(9)page_loaded(9)fetch_page(9)rebuild_from_leaves(9)process_entry(9)advance_points(9)before_recovery_point(9)get_entry(9)validate_recovery_journal_entry(9)add_slab_journal_entries(9)vdo_replay_into_slab_journals(9)find_entry_starting_next_page(9)get_recovery_journal_block_header(9)is_valid_recovery_journal_block(9)is_exact_recovery_journal_block(9)find_recovery_journal_head_and_tail(9)unpack_entry(9)append_sector_entries(9)compute_usages(9)vdo_repair(9)
Fr fr, that's the entire posse. No cap, go read them all if you wanna understand the repair pipeline end to end π
And that's the page, bestie! π Source path: ./drivers/md/dm-vdo, dated October 2026 β extract_new_mappings(9), slaying in a kernel near you. Periodt. πβ¨
π¦ where this page comes from
- nixpkgs unstable: linux-manual 7.3.1
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms