jbd2_journal_shrink_count(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’– jbd2_journal_shrink_count(9) πŸ’–

okay so bestie, welcome to the Kernel API Manual β€” this is the jbd2_journal_shrink_count page and honestly it's a little cutie. she's short, she's sweet, she counts things. let's get into it πŸŽ€


✨ NAME ✨

jbd2_journal_shrink_count β€” literally just here to count checkpoint buffers (the manpage leaves the one-liner blank, so consider this the group-chat translation πŸ’…)


🌸 SYNOPSIS 🌸

unsigned long jbd2_journal_shrink_count (struct shrinker *shrink ,
struct shrink_control *sc );

it returns an unsigned long, bestie. that's the number. iconic. ⭐


πŸ¦‹ ARGUMENTS πŸ¦‹

  • shrink β€” the shrinker to work on 🧹 like, the actual shrinker object you're doing the work for. main character of this function, tbh.
  • sc β€” the reclaim request to process 🌈 this is the request itself, and you're gonna process it. that's the vibe.

πŸ‘‘ DESCRIPTION πŸ‘‘

Count the number of checkpoint buffers on the checkpoint list. ✨

that's it. that's the whole function. she counts checkpoint buffers, she's on the checkpoint list, she does it well πŸ™ˆ no cap, sometimes the simplest ones ate the most.


πŸ’œ SEE ALSO πŸ’œ

Kernel file ./fs/jbd2/journal.c β€” go read the source, iykyk 🫢 and also these absolutely iconic siblings of hers, go say hi:

like, that's a whole friend group. go follow them all. πŸ”₯


and that's the page!! πŸ’– this little love letter lives in ./fs/jbd2 and it's dated October 2026, and yes she's still jbd2_journal_shrink_count(9) β€” same queen, same manual. mwah πŸŽ€βœ¨πŸ’…

πŸ“¦ where this page comes from