]> git.karo-electronics.de Git - karo-tx-linux.git/commit
fs/ext4/fsync.c: generic_file_fsync call based on barrier flag
authorFabian Frederick <fabf@skynet.be>
Thu, 22 May 2014 00:42:35 +0000 (10:42 +1000)
committerStephen Rothwell <sfr@canb.auug.org.au>
Thu, 22 May 2014 00:42:35 +0000 (10:42 +1000)
commit521f103d2ab7fa671e2038d34ec41f081acd4e40
tree0d47cdaf77ccdd05c28c4f5a49308cb183a4fd3f
parentc1b344f7df4957eed8d60f5c0607cea62212c1f4
fs/ext4/fsync.c: generic_file_fsync call based on barrier flag

generic_file_fsync has been updated to issue a flush for older
filesystems.

This patch tests for barrier flag in ext4 mount flags and calls the right
function.

Signed-off-by: Fabian Frederick <fabf@skynet.be>
Suggested-by: Jan Kara <jack@suse.cz>
Suggested-by: Christoph Hellwig <hch@infradead.org>
Cc: Jan Kara <jack@suse.cz>
Cc: Christoph Hellwig <hch@infradead.org>
Cc: Alexander Viro <viro@zeniv.linux.org.uk>
Cc: "Theodore Ts'o" <tytso@mit.edu>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
fs/ext4/fsync.c