mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-10-06 16:49:22 +00:00
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>
This commit is contained in:
parent
b38a134b22
commit
65149e3fab
1 changed files with 2 additions and 2 deletions
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue