rebuild_from_leaves(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… 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:

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