jbd: Provide function to check whether transaction will issue data barrier
authorJan Kara <jack@suse.cz>
Thu, 15 Apr 2010 20:16:24 +0000 (22:16 +0200)
committerJan Kara <jack@suse.cz>
Fri, 21 May 2010 17:30:40 +0000 (19:30 +0200)
commit03f4d804a1b4748885dc4613a4afe10089a731c8
treef2d7be9a0205496f14d61e6a8fe62277e653fab8
parent311b9549ed2bb0f2c2257781c3e88cb00505e80e
jbd: Provide function to check whether transaction will issue data barrier

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

Signed-off-by: Jan Kara <jack@suse.cz>
fs/jbd/commit.c
fs/jbd/journal.c
include/linux/jbd.h