xfs: fix incorrect error sign in xfs_file_aio_read
authorDave Chinner <dchinner@redhat.com>
Wed, 14 May 2014 23:21:37 +0000 (09:21 +1000)
committerDave Chinner <david@fromorbit.com>
Wed, 14 May 2014 23:21:37 +0000 (09:21 +1000)
Signed-off-by: Dave Chinner <dchinner@redhat.com>
Reviewed-by: Jie Liu <jeff.liu@oracle.com>
Signed-off-by: Dave Chinner <david@fromorbit.com>
fs/xfs/xfs_file.c

index f499e47d44d87f3951450a70c0855a1b42d31718..37f98c6d81aa06b43ef3977f102a528d1183233e 100644 (file)
@@ -295,7 +295,7 @@ xfs_file_aio_read(
                xfs_rw_ilock(ip, XFS_IOLOCK_EXCL);
 
                if (inode->i_mapping->nrpages) {
-                       ret = -filemap_write_and_wait_range(
+                       ret = filemap_write_and_wait_range(
                                                        VFS_I(ip)->i_mapping,
                                                        pos, -1);
                        if (ret) {