jbd2: Add function jbd2_trans_will_send_data_barrier()
authorJan Kara <jack@suse.cz>
Tue, 24 May 2011 15:59:18 +0000 (11:59 -0400)
committerTheodore Ts'o <tytso@mit.edu>
Tue, 24 May 2011 15:59:18 +0000 (11:59 -0400)
commitbbd2be36910728f485ac78ea36e0f4f5a38e691e
tree6a45da5a6ef8bafe9614de5fac68cce1fe4e13ec
parent81be12c8179c1c397d3f179cdd9b3f7146cf47f1
jbd2: Add function jbd2_trans_will_send_data_barrier()

Provide a function which returns whether a transaction with given tid
will send a flush to the filesystem device.  The function will be used
by ext4 to detect whether fsync needs to send a separate flush or not.

Signed-off-by: Jan Kara <jack@suse.cz>
Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
fs/jbd2/commit.c
fs/jbd2/journal.c
include/linux/jbd2.h