shrink_tnc_trees(9)
π¦ 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 allageβ the age of znodes to free β only the ones old enough get the bootcontentionβ if there's any contention, this gets set to1π¨ 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 π§
- Kernel file
./fs/ubifs/shrinker.cπ shrink_tnc(9)kick_a_thread(9)π
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
- 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