rebuild_from_leaves(9)
π rebuild_from_leaves β the Kernel API Manual edition π
okay bestie, so this one lives in the rebuild_from_leaves(9) section of the Kernel API Manual, and she's a whole vibe. let's get into it β¨
πΈ NAME πΈ
rebuild_from_leaves β literally rebuilds the reference counts from the leaf block map pages π no cap, that's the whole thing.
π¦ SYNOPSIS π¦
void rebuild_from_leaves (struct vdo_completion *completion );
π ARGUMENTS π
completionβ the repair completion. that's it, that's the argument π«Ά
β¨ DESCRIPTION β¨
so here's the tea, bestie β: rebuild_from_leaves rebuilds the reference counts from the leaf block map pages β but only now, because the reference counts have already been rebuilt from the interior tree pages (which have been loaded, in the process, like they did their part π). it's giving second-act main character energy fr fr.
this callback is registered in rebuild_reference_counts. periodt. π
ngl this is a callback so please don't just call it out of nowhere and expect the world to make sense β it's registered in rebuild_reference_counts, iykyk.
π SEE ALSO π
lowkey a whole friend group, here's everyone in the group chat π₯ and yes we're mentioning all of them, no skipping:
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)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)extract_new_mappings(9)compute_usages(9)vdo_repair(9)
and the kernel file herself, the source, the icon: ./drivers/md/dm-vdo/repair.c π§π
okay that's the whole page bestie, you ate that π this lil baddie is brought to you by the source at ./drivers/md/dm-vdo, dated October 2026, and yes she's still rebuild_from_leaves(9) in case you forgot ππ«Ά go forth and rebuild those reference counts, icon β
π¦ 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