evict_inodes(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… evict_inodes β€” the manual page, but make it cute

okay so this is evict_inodes(9), a page from the Kernel API Manual, and bestie, it's a short one but it's a load-bearing one. sit down, sip ur strawberry milk πŸ“, let's go.


✨ NAME ✨

evict_inodes β€” evict all evictable inodes for a superblock πŸ’€βœ¨


✨ SYNOPSIS ✨

void evict_inodes (struct super_block *sb );

that's it. that's the whole signature. void in, void out, no vibes returned 🫢


✨ ARGUMENTS ✨

  • sb β€” the superblock we're operating on πŸŽ€ like, this is the subject of the whole operation, the main character of this function call tbh πŸ‘‘

✨ DESCRIPTION ✨

okay so the whole point: this function makes sure that no inodes with zero refcount are retained. literally none. zero-refcount inodes do not get to stay. they get evicted, periodt πŸ’…

and here's the crucial lore πŸ”₯ β€” this gets called by superblock shutdown, after the SB_ACTIVE flag has been removed. so the timeline is: SB_ACTIVE gone β†’ evict_inodes runs. and because of that, any inode that hits zero refcount during or after that call gets immediately evicted. no waiting around, no "let me think about it", no little inode limbo era. immediate. iconic behaviour honestly 🌈

ngl this is a "you don't call this, the shutdown path calls this" kind of situation β€” respect the order of operations bestie, the SB_ACTIVE removal has to come first πŸ™ˆ

✨ SEE ALSO ✨

bestie there are like forty-six of these, buckle up πŸ¦‹ β€” all from the kernel file ./fs/inode.c:

that's the whole squad. read them. love them. they're all in ./fs/inode.c 🧚


anyway that's the page!! this one came out of ./fs, dated October 2026, per the Kernel API Manual β€” so like, source: ./fs, version: October 2026 edition, mwah 😘 go evict those inodes bestie, zero refcounts only, no cap πŸ’–πŸ‘‘

πŸ“¦ where this page comes from