jbd2_journal_shrink_count(9)
π 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:
jbd2_journal_force_commit_nested(9)jbd2_journal_force_commit(9)jbd2_journal_shrink_scan(9)jbd2_journal_init_dev(9)jbd2_journal_init_inode(9)jbd2_journal_update_sb_log_tail(9)jbd2_mark_journal_empty(9)__jbd2_journal_erase(9)jbd2_journal_update_sb_errno(9)jbd2_journal_load(9)jbd2_journal_destroy(9)jbd2_journal_check_used_features(9)jbd2_journal_check_available_features(9)jbd2_journal_set_features(9)jbd2_journal_flush(9)jbd2_journal_wipe(9)jbd2_journal_abort(9)jbd2_journal_errno(9)jbd2_journal_clear_err(9)jbd2_journal_ack_err(9)
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
- 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