X-Git-Url: http://pileus.org/git/?a=blobdiff_plain;f=fs%2Fext4%2Ffsync.c;h=dcc881b30849cca9cd3ee8ba4a3763c6e18e17a2;hb=b0857d309faefaf5443752458e8af1a4b22b3e92;hp=e0ba8a408def07583b9cd04a57259e3c56183057;hpb=2e8fa54e3b48e4ce8c4e9ca4674ffbc973f58be5;p=~andy%2Flinux diff --git a/fs/ext4/fsync.c b/fs/ext4/fsync.c index e0ba8a408de..dcc881b3084 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) if (inode->i_sb->s_flags & MS_RDONLY) goto out; - ret = ext4_flush_unwritten_io(inode); - if (ret < 0) - goto out; - if (!journal) { ret = __sync_inode(inode, datasync); if (!ret && !hlist_empty(&inode->i_dentry))