shrink_dcache_tree(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… shrink_dcache_tree β€” prune dcache

okay bestie, so we're in the kernel API manual (shrink_dcache_tree(9)) and this one is a whole function, not a command. it lives over in ./fs and honestly? iconic of it.


✨ NAME ✨

shrink_dcache_tree β€” prune dcache 🌸

like, literally just prune the dcache. that's the vibe. no cap.


🫢 SYNOPSIS 🫢

void shrink_dcache_tree (struct dentry *parent , bool for_umount );

returns nothing (void), takes two things, and it's giving "small function, big responsibility" energy fr fr.


πŸŽ€ ARGUMENTS πŸŽ€

  • parent β€” the parent of the entries we're gonna prune. yes she's the main character here, everything happens under her πŸ‘‘
  • for_umount β€” a bool. set it to true if we want to unpin the persistent ones. that's the whole lore. πŸ’€

🌈 DESCRIPTION 🌈

Prune the dcache to remove unused children of the parent dentry. that's it. that's the function. she goes in, she clears out the unused children, she leaves. lowkey obsessed with how clean that is ✨


πŸ”₯ SEE ALSO πŸ”₯

the kernel file ./fs/dcache.c and literally the entire dcache friend group β€” everyone's invited, it's a whole group chat:


okay that's the page!! πŸŽ€ this one's from ./fs, dated October 2026, and it's shrink_dcache_tree(9) β€” go prune some unused children bestie, ily, bye πŸ’–πŸ§š
πŸ“¦ where this page comes from