diff options
Diffstat (limited to 'fs/ext4/fsync.c')
-rw-r--r-- | fs/ext4/fsync.c | 4 |
1 files changed, 0 insertions, 4 deletions
diff --git a/fs/ext4/fsync.c b/fs/ext4/fsync.c index e0ba8a408def..dcc881b30849 100644 --- a/fs/ext4/fsync.c +++ b/fs/ext4/fsync.c | |||
@@ -132,10 +132,6 @@ int ext4_sync_file(struct file *file, loff_t start, loff_t end, int datasync) | |||
132 | if (inode->i_sb->s_flags & MS_RDONLY) | 132 | if (inode->i_sb->s_flags & MS_RDONLY) |
133 | goto out; | 133 | goto out; |
134 | 134 | ||
135 | ret = ext4_flush_unwritten_io(inode); | ||
136 | if (ret < 0) | ||
137 | goto out; | ||
138 | |||
139 | if (!journal) { | 135 | if (!journal) { |
140 | ret = __sync_inode(inode, datasync); | 136 | ret = __sync_inode(inode, datasync); |
141 | if (!ret && !hlist_empty(&inode->i_dentry)) | 137 | if (!ret && !hlist_empty(&inode->i_dentry)) |