|
@@ -3053,8 +3053,7 @@ out:
|
|
return 0;
|
|
return 0;
|
|
}
|
|
}
|
|
|
|
|
|
-static int btrfs_cmp_data(struct inode *src, u64 loff, struct inode *dst,
|
|
|
|
- u64 dst_loff, u64 len, struct cmp_pages *cmp)
|
|
|
|
|
|
+static int btrfs_cmp_data(u64 len, struct cmp_pages *cmp)
|
|
{
|
|
{
|
|
int ret = 0;
|
|
int ret = 0;
|
|
int i;
|
|
int i;
|
|
@@ -3221,7 +3220,7 @@ again:
|
|
}
|
|
}
|
|
|
|
|
|
/* pass original length for comparison so we stay within i_size */
|
|
/* pass original length for comparison so we stay within i_size */
|
|
- ret = btrfs_cmp_data(src, loff, dst, dst_loff, olen, &cmp);
|
|
|
|
|
|
+ ret = btrfs_cmp_data(olen, &cmp);
|
|
if (ret == 0)
|
|
if (ret == 0)
|
|
ret = btrfs_clone(src, dst, loff, olen, len, dst_loff, 1);
|
|
ret = btrfs_clone(src, dst, loff, olen, len, dst_loff, 1);
|
|
|
|
|