kill_orphans(9)
β¨ NAME β¨
Okay bestie, meet kill_orphans(9) from the Kernel API Manual β the function whose whole job is to remove all orphan inodes from the index. π
π¦ SYNOPSIS π¦
int kill_orphans (struct ubifs_info *c );
Thatβs the signature, no cap. β¨
π ARGUMENTS π
cβ the UBIFS file-system description object, aka the thing you pass in. π«Ά
π DESCRIPTION π
So hereβs the tea: if recovery is required, then the orphan inodes recorded during the previous session β the one that ended with an unclean unmount π β must be deleted from the index.
This is done by updating the TNC, but since the index is not updated until the next commit, the LEBs where the orphan information is recorded are not erased until the next commit. Periodt. π
π 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)erase_deleted(9)ubifs_orphan_end_commit(9)ubifs_clear_orphans(9)do_kill_orphans(9)ubifs_mount_orphans(9)
And thatβs the page, bestie: source/version ./fs/ubifs, dated October 2026, page kill_orphans(9). Slay, bye! ππ
π¦ 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