Re: [PATCH 4/9] xfs: correct error sign on COLLAPSE_RANGE errors

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On 05/13 2014 16:56 PM, Dave Chinner wrote:
> From: Dave Chinner <dchinner@xxxxxxxxxx>
> 
> Signed-off-by: Dave Chinner <dchinner@xxxxxxxxxx>
> ---
>  fs/xfs/xfs_file.c | 4 ++--
>  1 file changed, 2 insertions(+), 2 deletions(-)
> 
> diff --git a/fs/xfs/xfs_file.c b/fs/xfs/xfs_file.c
> index 37f98c6..830c1c9 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;
>  		}
>  
> 

Reviewed-by: Jie Liu <jeff.liu@xxxxxxxxxx>


Cheers,
-Jeff

_______________________________________________
xfs mailing list
xfs@xxxxxxxxxxx
http://oss.sgi.com/mailman/listinfo/xfs




[Index of Archives]     [Linux XFS Devel]     [Linux Filesystem Development]     [Filesystem Testing]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux