summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--fs/ext4/super.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/ext4/super.c b/fs/ext4/super.c
index 9a40e0c16dcc..931053cf20d6 100644
--- a/fs/ext4/super.c
+++ b/fs/ext4/super.c
@@ -4637,7 +4637,7 @@ static int ext4_commit_super(struct super_block *sb, int sync)
4637 if (sync) { 4637 if (sync) {
4638 unlock_buffer(sbh); 4638 unlock_buffer(sbh);
4639 error = __sync_dirty_buffer(sbh, 4639 error = __sync_dirty_buffer(sbh,
4640 test_opt(sb, BARRIER) ? REQ_FUA : REQ_SYNC); 4640 REQ_SYNC | (test_opt(sb, BARRIER) ? REQ_FUA : 0));
4641 if (error) 4641 if (error)
4642 return error; 4642 return error;
4643 4643