shrink_dcache_sb(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… shrink_dcache_sb(9) β€” Kernel API Manual ✨

hey bestie, welcome to the Kernel API Manual page for shrink_dcache_sb(9) β€” it’s short, it’s sweet, and it’s lowkey doing important cleanup work. 🫢


🌸 NAME 🌸

shrink_dcache_sb β€” shrink dcache for a superblock. periodt. πŸ’…


✨ SYNOPSIS ✨

okay so the signature is literally this, bestie:

void shrink_dcache_sb (struct super_block *sb );

void era β€” no return value in the signature, no cap. 🌈


πŸŽ€ ARGUMENTS πŸŽ€

  • sb β€” the superblock πŸ’– that’s the whole argument, and yes, it’s a struct super_block *.

πŸ¦‹ DESCRIPTION πŸ¦‹

okay so shrink_dcache_sb shrinks the dcache for the specified super block. that’s the main character energy right there. ✨

it’s used to free the dcache before unmounting a file system β€” so it’s the pre-unmount cleanup moment, and it ate. πŸ§šπŸ’œ


πŸ”₯ SEE ALSO πŸ”₯

Kernel file ./fs/dcache.c is where this lives, and here are all the related entries β€” every single one, no skipping:


🫢 that’s the whole page, bestie β€” source/version ./fs, dated October 2026, for shrink_dcache_sb(9). mwah πŸ’–

πŸ“¦ where this page comes from