jbd2_journal_set_triggers(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’– jbd2_journal_set_triggers(9) πŸ’–

okay so bestie, welcome to this lil corner of the Kernel API Manual β€” we’re talking about jbd2_journal_set_triggers(9) today, and it’s honestly giving β€œtiny function, big commit writeout energy.” ✨


🌸 NAME 🌸

jbd2_journal_set_triggers β€” Add triggers for commit writeout πŸŽ€


✨ SYNOPSIS ✨

void jbd2_journal_set_triggers (struct buffer_head *bh , struct
       jbd2_buffer_trigger_type *type );

πŸ¦‹ ARGUMENTS πŸ¦‹

  • bh β€” the buffer to trigger on, periodt.
  • type β€” a struct jbd2_buffer_trigger_type containing the trigger(s). yep, that’s the whole vibe.

πŸ”₯ DESCRIPTION πŸ”₯

So what are we doing? Setting any triggers on this journal_head. That’s the move. πŸ’…

And it’s always safe, no cap, because:

  • triggers for a committing buffer will be saved off, and
  • triggers for a running transaction will match the buffer in that transaction.
Need to clear the triggers? Call with NULL to clear the triggers β€” yes, that’s the clear button. 🫢

🌈 SEE ALSO 🌈

Kernel file: ./fs/jbd2/transaction.c β€” that’s where the lore lives, iykyk. πŸ“–


okay that’s the whole page, bestie β€” source/version is ./fs/jbd2, date is October 2026, and this is jbd2_journal_set_triggers(9) signing off. mwah πŸ’‹βœ¨

πŸ“¦ where this page comes from