shrink_tnc_trees(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ¦‹ shrink_tnc_trees(9) β€” a lil' page from the Kernel API Manual πŸŽ€

okay so bestie, welcome to the Kernel API Manual corner of the universe ✨ this one's all about shrink_tnc_trees and honestly? it's giving cleanup era πŸ’…


πŸ’– NAME πŸ’–

shrink_tnc_trees β€” shrinks UBIFS TNC trees, no cap 🌸


✨ SYNOPSIS ✨

int shrink_tnc_trees (int nr , int age , int *contention );

🫢 ARGUMENTS 🫢

  • nr β€” the number of znodes to free πŸ‘‘ like, the goal number, the quota, the "we need at least this many" of it all
  • age β€” the age of znodes to free ⭐ only the ones old enough get the boot
  • contention β€” if there's any contention, this gets set to 1 🚨 yep, that's literally it, that's the whole job

🌈 DESCRIPTION 🌈

so what does it actually do? okay so β€” it walks the list of mounted UBIFS file-systems 😌 and frees clean znodes that are older than age, and it keeps going until at least nr znodes are freed πŸ”₯

then it returns the number of freed znodes πŸŽ€ that's the vibe check result, iykyk


🧚 SEE ALSO 🧚


ngl bestie, this one's short and sweet β€” read it, love it, ship it πŸ™ˆ

and that's the whole page, periodt πŸ’… mwah 🫢

that was ./fs/ubifs, October 2026 β€” ty for coming to my ted talk, ily, bye βœ¨πŸ’œ

πŸ“¦ where this page comes from