diff --git a/fs/xfs/xfs_file.c b/fs/xfs/xfs_file.c index 79e96ce987331cad3aab2d0a7513ce19cad2fcb4..82afdcb33183951350df18d3ce05b3aeecdf3e76 100644 --- a/fs/xfs/xfs_file.c +++ b/fs/xfs/xfs_file.c @@ -679,7 +679,7 @@ xfs_file_dio_aio_write( goto out; if (mapping->nrpages) { - ret = -filemap_write_and_wait_range(VFS_I(ip)->i_mapping, + ret = filemap_write_and_wait_range(VFS_I(ip)->i_mapping, pos, -1); if (ret) goto out;