jbd2_journal_set_triggers(9)
π 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β astruct jbd2_buffer_trigger_typecontaining 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. π
jbd2_journal_start(9)jbd2_journal_start_reserved(9)jbd2_journal_extend(9)jbd2__journal_restart(9)jbd2_journal_lock_updates(9)jbd2_journal_unlock_updates(9)jbd2_journal_get_write_access(9)jbd2_journal_get_create_access(9)jbd2_journal_get_undo_access(9)jbd2_journal_dirty_metadata(9)jbd2_journal_forget(9)jbd2_journal_stop(9)jbd2_journal_try_to_free_buffers(9)jbd2_journal_invalidate_folio(9)
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
- 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