---
name: "jbd2_journal_set_triggers"
section: "9"
platform: "linux"
package: "linux-manual-4.9"
version: "4.9.228-1"
release: "Debian 9 (Stretch)"
platforms: ["linux"]
url: "https://new.carta.tech/jbd2_journal_set_triggers"
---

# jbd2\_journal\_set\_triggers(9)

Add triggers for commit writeout

## 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*

buffer to trigger on

*type*

struct jbd2\_buffer\_trigger\_type containing the trigger(s).

## DESCRIPTION

Set any triggers on this journal\_head. This is always safe, because triggers for a committing buffer will be saved off, and triggers for a running transaction will match the buffer in that transaction.

Call with NULL to clear the triggers.

## AUTHORS

**Roger Gammans** \<rgammans@computer-surgery.co.uk\>

Author.

**Stephen Tweedie** \<sct@redhat.com\>

Author.

## COPYRIGHT
