diff options
author | Darrick J. Wong <darrick.wong@oracle.com> | 2016-10-10 08:49:10 +0300 |
---|---|---|
committer | Dave Chinner <david@fromorbit.com> | 2016-10-10 08:49:10 +0300 |
commit | 93fed47013b3c17318968cad0e81bd74196798c4 (patch) | |
tree | 10e04d2a5c30161282446d43724075134286afa1 /fs/xfs | |
parent | 97a1b87ea7b2884fa9516c646385ca25475c4760 (diff) | |
download | linux-93fed47013b3c17318968cad0e81bd74196798c4.tar.xz |
xfs: fix label inaccuracies
Since we don't unlock anything on the way out, change the label.
Signed-off-by: Darrick J. Wong <darrick.wong@oracle.com>
Reported-by: Brian Foster <bfoster@redhat.com>
Reviewed-by: Dave Chinner <dchinner@redhat.com>
Signed-off-by: Dave Chinner <david@fromorbit.com>
Diffstat (limited to 'fs/xfs')
-rw-r--r-- | fs/xfs/xfs_file.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/fs/xfs/xfs_file.c b/fs/xfs/xfs_file.c index 54c27edb74bc..710ee1140f16 100644 --- a/fs/xfs/xfs_file.c +++ b/fs/xfs/xfs_file.c @@ -1098,19 +1098,19 @@ xfs_file_share_range( /* Wait for the completion of any pending IOs on srcfile */ ret = xfs_file_wait_for_io(inode_in, pos_in, len); if (ret) - goto out_unlock; + goto out; ret = xfs_file_wait_for_io(inode_out, pos_out, len); if (ret) - goto out_unlock; + goto out; if (is_dedupe) flags |= XFS_REFLINK_DEDUPE; ret = xfs_reflink_remap_range(XFS_I(inode_in), pos_in, XFS_I(inode_out), pos_out, len, flags); if (ret < 0) - goto out_unlock; + goto out; -out_unlock: +out: return ret; } |