diff options
-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( | |||
1098 | /* Wait for the completion of any pending IOs on srcfile */ | 1098 | /* Wait for the completion of any pending IOs on srcfile */ |
1099 | ret = xfs_file_wait_for_io(inode_in, pos_in, len); | 1099 | ret = xfs_file_wait_for_io(inode_in, pos_in, len); |
1100 | if (ret) | 1100 | if (ret) |
1101 | goto out_unlock; | 1101 | goto out; |
1102 | ret = xfs_file_wait_for_io(inode_out, pos_out, len); | 1102 | ret = xfs_file_wait_for_io(inode_out, pos_out, len); |
1103 | if (ret) | 1103 | if (ret) |
1104 | goto out_unlock; | 1104 | goto out; |
1105 | 1105 | ||
1106 | if (is_dedupe) | 1106 | if (is_dedupe) |
1107 | flags |= XFS_REFLINK_DEDUPE; | 1107 | flags |= XFS_REFLINK_DEDUPE; |
1108 | ret = xfs_reflink_remap_range(XFS_I(inode_in), pos_in, XFS_I(inode_out), | 1108 | ret = xfs_reflink_remap_range(XFS_I(inode_in), pos_in, XFS_I(inode_out), |
1109 | pos_out, len, flags); | 1109 | pos_out, len, flags); |
1110 | if (ret < 0) | 1110 | if (ret < 0) |
1111 | goto out_unlock; | 1111 | goto out; |
1112 | 1112 | ||
1113 | out_unlock: | 1113 | out: |
1114 | return ret; | 1114 | return ret; |
1115 | } | 1115 | } |
1116 | 1116 | ||