From: Dave Chinner Date: Wed, 14 May 2014 23:22:07 +0000 (+1000) Subject: xfs: correct error sign on COLLAPSE_RANGE errors X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=65149e3fab7f053396d09a429085f3071fa50825;p=GitHub%2Fexynos8895%2Fandroid_kernel_samsung_universal8895.git xfs: correct error sign on COLLAPSE_RANGE errors 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 37f98c6d81aa..830c1c937b88 100644 --- a/fs/xfs/xfs_file.c +++ b/fs/xfs/xfs_file.c @@ -837,7 +837,7 @@ xfs_file_fallocate( unsigned blksize_mask = (1 << inode->i_blkbits) - 1; if (offset & blksize_mask || len & blksize_mask) { - error = -EINVAL; + error = EINVAL; goto out_unlock; } @@ -846,7 +846,7 @@ xfs_file_fallocate( * in which case it is effectively a truncate operation */ if (offset + len >= i_size_read(inode)) { - error = -EINVAL; + error = EINVAL; goto out_unlock; }