shrink_tnc(9)
πΈ NAME πΈ
okay so bestie, this is shrink_tnc(9) β the kernel API manual page for shrink_tnc, aka the function that shrinks a TNC tree. slay. π
β¨ SYNOPSIS β¨
int shrink_tnc (struct ubifs_info *c , int nr , int age , int *contention );
π ARGUMENTS π
cβ UBIFS file-system description object. literally the UBIFS context, bestie π«Άnrβ number of znodes to free.ageβ the age of znodes to free.contentionβ if any contention, this is set to1. so if thereβs contention, it flips to1β¨
π¦ DESCRIPTION π¦
This function traverses the TNC tree and frees clean znodes. Important caveat: it does not free clean znodes which are younger then age β yes, βthenβ is how the page says it, and the age rule still stands π. It returns the number of freed znodes.
π₯ SEE ALSO π₯
- Kernel file
./fs/ubifs/shrinker.c shrink_tnc_trees(9)kick_a_thread(9)
cute sign-off bestie: source/version is ./fs/ubifs, date is October 2026, and the page is shrink_tnc(9) β periodt ππ
π¦ 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