erase_deleted(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

🌈 erase_deleted(9) 🌈

okay so welcome to the Kernel API Manual, bestie β€” this page is erase_deleted(9), and it's lowkey the cleanup crew for orphan vibes ✨ no cap.


πŸŽ€ NAME πŸŽ€

erase_deleted β€” erase the orphans marked for deletion. periodt πŸ’…

✨ SYNOPSIS ✨

void erase_deleted (struct ubifs_info *c );

🫢 ARGUMENTS 🫢

  • c β€” the UBIFS file-system description object, iykyk πŸ’–

πŸ’… DESCRIPTION πŸ’…

okay so picture it: during commit, the orphans being committed cannot be deleted, so they get marked for deletion and then this function deletes them. literally her whole job πŸ’€

also, the recovery adds killed orphans to the deletion list, and therefore they are deleted here too. so yeah, she's catching those too 🫢

πŸ‘€ SEE ALSO πŸ‘€

Kernel file ./fs/ubifs/orphan.c β€” plus the whole friend group:


cute sign-off: source/version is ./fs/ubifs, date is October 2026 β€” and erase_deleted(9) is out here deleting the marked-for-deletion orphans so you don't have to πŸ’–βœ¨πŸŽ€

πŸ“¦ where this page comes from