From: Dave Chinner Date: Wed, 14 May 2014 23:21:37 +0000 (+1000) Subject: xfs: fix incorrect error sign in xfs_file_aio_read X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=8ff1e6705a4c711247708f23881feea169e6fc3c;p=GitHub%2FLineageOS%2Fandroid_kernel_motorola_exynos9610.git xfs: fix incorrect error sign in xfs_file_aio_read Signed-off-by: Dave Chinner Reviewed-by: Jie Liu Signed-off-by: Dave Chinner --- diff --git a/fs/xfs/xfs_file.c b/fs/xfs/xfs_file.c index f499e47d44d8..37f98c6d81aa 100644 --- a/fs/xfs/xfs_file.c +++ b/fs/xfs/xfs_file.c @@ -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) {