提交 93fed470 编写于 作者: D Darrick J. Wong 提交者: Dave Chinner

xfs: fix label inaccuracies

Since we don't unlock anything on the way out, change the label.
Signed-off-by: NDarrick J. Wong <darrick.wong@oracle.com>
Reported-by: NBrian Foster <bfoster@redhat.com>
Reviewed-by: NDave Chinner <dchinner@redhat.com>
Signed-off-by: NDave Chinner <david@fromorbit.com>
上级 97a1b87e
......@@ -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;
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册