jbd2_journal_shrink_scan(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… jbd2_journal_shrink_scan(9) πŸ’…

okay bestie, welcome to the Kernel API Manual ✨ this one's a kernel-function page, lowercase-f function, capital-V Vibes πŸ¦‹


🌸 NAME 🌸

jbd2_journal_shrink_scan β€” and that's literally it, the description field is empty πŸ’€ no further info, the manpage just trails off. Iconic of it honestly πŸŽ€


✨ SYNOPSIS ✨

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

so it takes two pointers and hands you back an unsigned long, periodt πŸ’…


🫢 ARGUMENTS 🫢

  • shrink β€” the shrinker you're working on, like the actual thing being shrunk 🧚
  • sc β€” the reclaim request to process, aka the to-do list you got handed πŸ“‹

πŸ”₯ DESCRIPTION πŸ”₯

so what it does: it scans the checkpointed buffer on the checkpoint list, and releases the journal_head. that's the whole thing, no cap. scan it, free it, done 😭✨


πŸ‘‘ SEE ALSO πŸ‘‘

this is the part where the page dumps the whole friend group on you, and honestly? slay. it's all in the kernel file ./fs/jbd2/journal.c:


and that's the tea πŸ“ this lil page lives in ./fs/jbd2, dated October 2026, and it signs off as jbd2_journal_shrink_scan(9) β€” go read the source bestie, ily, bye πŸ’–πŸŒˆ

πŸ“¦ where this page comes from