]> git.karo-electronics.de Git - karo-tx-linux.git/commit
ext4: fix data integrity for ext4_sync_fs
authorDmitry Monakhov <dmonakhov@openvz.org>
Thu, 13 Jun 2013 02:25:07 +0000 (22:25 -0400)
committerTheodore Ts'o <tytso@mit.edu>
Thu, 13 Jun 2013 02:25:07 +0000 (22:25 -0400)
commitc40ed991e464d65363caa49afb31c3471d419234
tree79ce69f348c778ed64877f549c7b81a2a585848e
parent0047bd54ce2bc15e28e2ceedeae35c92df48b600
ext4: fix data integrity for ext4_sync_fs

Inode's data or non journaled quota may be written w/o jounral so we
_must_ send a barrier at the end of ext4_sync_fs. But it can be
skipped if journal commit will do it for us.

Also fix data integrity for nojournal mode.

Signed-off-by: Dmitry Monakhov <dmonakhov@openvz.org>
Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
fs/ext4/super.c
include/linux/jbd2.h