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

Submitted by Konstantin Khorenko on Aug. 9, 2016, 9:30 a.m.

Details

Message ID 201608090930.u799Uhs0016246@finist_cl7.x64_64.work.ct
State New
Series "ext4: fix broken fsync for dirs/symlink"
Headers show

Commit Message

Konstantin Khorenko Aug. 9, 2016, 9:30 a.m.
The commit is pushed to "branch-rh7-3.10.0-327.22.2.vz7.16.x-ovz" and will appear at https://src.openvz.org/scm/ovz/vzkernel.git
after rh7-3.10.0-327.22.2.vz7.16.3
------>
commit f7b0c64bac2f61069df1f5fbe38672520aa770a2
Author: Dmitry Monakhov <dmonakhov@openvz.org>
Date:   Tue Aug 9 13:30:43 2016 +0400

    ext4: fix broken fsync for dirs/symlink
    
    Fixes commit 6a63db16da84fe
    ("ext4: Fix error handling after filesystem abort").
    
    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);