]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commitb4f0e7d1ed4d8bb16a4a441d632534ee7cb0cb3c
tree6a45da5a6ef8bafe9614de5fac68cce1fe4e13ec
parent4fe04fca6cc575fe4b48d7da37ba44e1935d1d85
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