[Devel] ext4: fix broken fsync for dirs/symlink

Submitted by Dmitry Monakhov on July 20, 2016, 4:38 p.m.

Details

Message ID 1469032688-22741-1-git-send-email-dmonakhov@openvz.org
State New
Series "ext4: fix broken fsync for dirs/symlink"
Headers show

Commit Message

Dmitry Monakhov July 20, 2016, 4:38 p.m.
bad commit: 6a63db16da84fe

xfstests: generic/321 generic/335 generic/348
Signed-off-by: Dmitry Monakhov <dmonakhov@openvz.org>
---
 fs/ext4/super.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

Patch hide | download patch | download mbox

diff --git a/fs/ext4/super.c b/fs/ext4/super.c
index c0e7acd..7e44850 100644
--- a/fs/ext4/super.c
+++ b/fs/ext4/super.c
@@ -4919,8 +4919,8 @@  int ext4_force_commit(struct super_block *sb)
 		smp_rmb();
 		if (EXT4_SB(sb)->s_mount_flags & EXT4_MF_FS_ABORTED)
 			return -EROFS;
-	}
 		return 0;
+	}
 
 	journal = EXT4_SB(sb)->s_journal;
 	return ext4_journal_force_commit(journal);