destroy_old_idx(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… destroy_old_idx(9) πŸ’…

okay bestie, welcome to the Kernel API Manual corner where we’re talking about destroy_old_idx β€” yes, the function whose whole vibe is β€œdestroy the old_idx RB-tree.” it’s giving cleanup era, no cap. πŸ’–

✨ NAME ✨

destroy_old_idx - destroy the old_idx RB-tree. πŸŽ€

πŸ’… SYNOPSIS πŸ’…

void destroy_old_idx (struct ubifs_info *c );

πŸŽ€ ARGUMENTS πŸŽ€

  • c β€” UBIFS file-system description object. that’s the whole argument, bestie; it’s literally the UBIFS file-system description object. 🫢

🌸 DESCRIPTION 🌸

So during start commit, the old_idx RB-tree is used to avoid overwriting index nodes that were in the index last commit but have since been deleted. this is necessary for recovery β€” i.e. the old index must be kept intact until the new index is successfully written. the old-idx RB-tree is used for the in-the-gaps method of writing index nodes and is destroyed every commit. periodt. πŸ¦‹

πŸ¦‹ SEE ALSO πŸ¦‹

Kernel file ./fs/ubifs/tnc.c β€” and its whole SEE ALSO friend group:

πŸ’Œ cute little sign-off: source/version is ./fs/ubifs, the date is October 2026, and yes bestie this iconic page is still destroy_old_idx(9) β€” mwah πŸ’‹

πŸ“¦ where this page comes from