diff options
author | Dave Chinner <dchinner@redhat.com> | 2014-05-15 01:22:07 +0200 |
---|---|---|
committer | Dave Chinner <david@fromorbit.com> | 2014-05-15 01:22:07 +0200 |
commit | 65149e3fab7f053396d09a429085f3071fa50825 (patch) | |
tree | c0a779dd2231a5ce3fdf1f0ce87c67fa02bd86b3 /fs | |
parent | xfs: xfs_commit_metadata returns wrong errno (diff) | |
download | linux-65149e3fab7f053396d09a429085f3071fa50825.tar.xz linux-65149e3fab7f053396d09a429085f3071fa50825.zip |
xfs: correct error sign on COLLAPSE_RANGE errors
Signed-off-by: Dave Chinner <dchinner@redhat.com>
Reviewed-by: Jie Liu <jeff.liu@oracle.com>
Signed-off-by: Dave Chinner <david@fromorbit.com>
Diffstat (limited to 'fs')
-rw-r--r-- | fs/xfs/xfs_file.c | 4 |
1 files changed, 2 insertions, 2 deletions
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; } |