]> git.proxmox.com Git - mirror_ubuntu-zesty-kernel.git/blobdiff - fs/xfs/xfs_vnodeops.c
[XFS] fix error inversion problems with data flushing
[mirror_ubuntu-zesty-kernel.git] / fs / xfs / xfs_vnodeops.c
index c055bdb11cb77985046c46ff64dcfc326ff7f52e..f26b038004a74ab433b1cefb27e00d7b9a712601 100644 (file)
@@ -681,7 +681,7 @@ xfs_fsync(
                return XFS_ERROR(EIO);
 
        /* capture size updates in I/O completion before writing the inode. */
-       error = filemap_fdatawait(VFS_I(ip)->i_mapping);
+       error = xfs_wait_on_pages(ip, 0, -1);
        if (error)
                return XFS_ERROR(error);