Re: [PATCH 1/2] btrfs: pass unaligned length to btrfs_cmp_data()

2015-06-19 Thread David Sterba
On Thu, Jun 18, 2015 at 02:10:02PM -0700, Mark Fasheh wrote: In the case that we dedupe the tail of a file, we might expand the dedupe len out to the end of our last block. We don't want to compare data past i_size however, so pass the original length to btrfs_cmp_data(). Signed-off-by: Mark

[PATCH 1/2] btrfs: pass unaligned length to btrfs_cmp_data()

2015-06-18 Thread Mark Fasheh
In the case that we dedupe the tail of a file, we might expand the dedupe len out to the end of our last block. We don't want to compare data past i_size however, so pass the original length to btrfs_cmp_data(). Signed-off-by: Mark Fasheh mfas...@suse.de --- fs/btrfs/ioctl.c | 3 ++- 1 file