Skip to content

Commit

Permalink
xfs: fix label inaccuracies
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Darrick J. Wong authored and Dave Chinner committed Oct 10, 2016
1 parent 97a1b87 commit 93fed47
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions fs/xfs/xfs_file.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}

Expand Down

0 comments on commit 93fed47

Please sign in to comment.