diff options
author | 2020-06-29 14:47:20 -0700 | |
---|---|---|
committer | 2020-07-06 10:46:57 -0700 | |
commit | 451d34ee075023d790213885a947fc7a71f26e6d (patch) | |
tree | 28d1600a5f83787f6fab5d3383b88982d1588e8c /fs/xfs/xfs_file.c | |
parent | xfs: reflink can skip remap existing mappings (diff) | |
download | linux-451d34ee075023d790213885a947fc7a71f26e6d.tar.gz linux-451d34ee075023d790213885a947fc7a71f26e6d.tar.bz2 linux-451d34ee075023d790213885a947fc7a71f26e6d.zip |
xfs: fix xfs_reflink_remap_prep calling conventions
Fix the return value of xfs_reflink_remap_prep so that its return value
conventions match the rest of xfs.
Signed-off-by: Darrick J. Wong <darrick.wong@oracle.com>
Reviewed-by: Brian Foster <bfoster@redhat.com>
Diffstat (limited to 'fs/xfs/xfs_file.c')
-rw-r--r-- | fs/xfs/xfs_file.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/xfs/xfs_file.c b/fs/xfs/xfs_file.c index 00db81eac80d..b375fae811f2 100644 --- a/fs/xfs/xfs_file.c +++ b/fs/xfs/xfs_file.c @@ -1035,7 +1035,7 @@ xfs_file_remap_range( /* Prepare and then clone file data. */ ret = xfs_reflink_remap_prep(file_in, pos_in, file_out, pos_out, &len, remap_flags); - if (ret < 0 || len == 0) + if (ret || len == 0) return ret; trace_xfs_reflink_remap_range(src, pos_in, len, dest, pos_out); |