aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--fs/ext4/fsync.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/fs/ext4/fsync.c b/fs/ext4/fsync.c
index 83cf6415f599..ab418c0f502d 100644
--- a/fs/ext4/fsync.c
+++ b/fs/ext4/fsync.c
@@ -92,9 +92,9 @@ int ext4_sync_file(struct file *file, struct dentry *dentry, int datasync)
92 .nr_to_write = 0, /* sys_fsync did this */ 92 .nr_to_write = 0, /* sys_fsync did this */
93 }; 93 };
94 ret = sync_inode(inode, &wbc); 94 ret = sync_inode(inode, &wbc);
95 if (journal && (journal->j_flags & JBD2_BARRIER))
96 blkdev_issue_flush(inode->i_sb->s_bdev, NULL);
97 } 95 }
98out: 96out:
97 if (journal && (journal->j_flags & JBD2_BARRIER))
98 blkdev_issue_flush(inode->i_sb->s_bdev, NULL);
99 return ret; 99 return ret;
100} 100}