do_kill_orphans(9)
β¨ do_kill_orphans(9) β¨
okay bestie, welcome to the Kernel API Manual π this one's a little UBIFS helper function and honestly it's giving "small but crucial" energy β like the friend who keeps the whole group chat organised. let's get into it π«Ά
πΈ NAME πΈ
do_kill_orphans β removes orphan inodes from the index. literally its whole job, no cap β¨
π SYNOPSIS π
int do_kill_orphans (struct ubifs_info *c , struct ubifs_scan_leb *sleb
, unsigned long long *last_cmt_no , int *outofdate , int *last_flagged
);
π¦ ARGUMENTS π¦
cβ the UBIFS file-system description object. iconic struct, knows everything about the fs πslebβ the scanned LEB. yes girl, the one we're looking at πlast_cmt_noβ thecmt_noof the last orphan node read gets passed in here, and the new value gets returned right back out. it's a whole two-way situation π«Άoutofdateβ whether the LEB is out of date gets returned here. so this is where you find out if it's expired πlast_flaggedβ tells you whether the end orphan node is encountered. the finish line detector π
π DESCRIPTION π
so bestie, this function is a helper to the 'kill_orphans' function β think of it as the little sidekick that does the detail work π
what it does: it goes through every single orphan node in a LEB, and for every inode number it records along the way, it removes all keys for that inode from the TNC. every one. no skipping. the way that it just methodically cleans upβ¦ obsessed πβ¨
π SEE ALSO π
Kernel file ./fs/ubifs/orphan.c β and the whole orphan-adjacent friend group, fr fr:
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)kill_orphans(9)ubifs_mount_orphans(9)
ngl this page lives in ./fs/ubifs and it's dated October 2026, so mark your calendars bestie ποΈβ¨
and that's the whole page, no notes π
do_kill_orphans(9) ate and left absolutely no crumbs β mwah, see you in the man pages ππ¦π
π¦ 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