jbd2_journal_shrink_scan(9)
π 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:
jbd2_journal_force_commit_nested(9)jbd2_journal_force_commit(9)jbd2_journal_shrink_count(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)
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
- 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