erase_deleted(9)
π 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:
ubifs_add_orphan(9)ubifs_delete_orphan(9)ubifs_orphan_start_commit(9)avail_orphs(9)tot_avail_orphs(9)do_write_orph_node(9)write_orph_node(9)write_orph_nodes(9)consolidate(9)commit_orphans(9)ubifs_orphan_end_commit(9)ubifs_clear_orphans(9)do_kill_orphans(9)kill_orphans(9)ubifs_mount_orphans(9)
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
- 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