shrink_dcache_sb(9)
π
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 astruct 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:
d_drop(9)dentry_kill(9)__move_to_shrink_list(9)d_find_any_alias(9)d_find_alias(9)prune_dcache_sb(9)enum d_walk_ret(9)d_walk(9)path_has_submounts(9)shrink_dcache_tree(9)d_invalidate(9)__d_alloc(9)d_alloc(9)d_alloc_pseudo(9)d_instantiate(9)d_obtain_alias(9)d_obtain_root(9)d_add_ci(9)d_same_name(9)__d_lookup_rcu(9)d_lookup(9)__d_lookup(9)d_hash_and_lookup(9)d_delete(9)d_rehash(9)d_add(9)d_ancestor(9)d_splice_alias(9)is_subdir(9)
π«Ά thatβs the whole page, bestie β source/version ./fs, dated October 2026, for shrink_dcache_sb(9). mwah π
π¦ 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