]> git.baikalelectronics.ru Git - kernel.git/commit
btrfs: pass unaligned length to btrfs_cmp_data()
authorMark Fasheh <mfasheh@suse.de>
Tue, 30 Jun 2015 21:42:04 +0000 (14:42 -0700)
committerChris Mason <clm@fb.com>
Thu, 2 Jul 2015 00:17:13 +0000 (17:17 -0700)
commitb08b341a7ca8010161b471658722b0a41a76f53e
tree1d44e13585134d22b5d62a48a67c8cebab6154c5
parent13db5e11adb12609a1e5a64c75c48360c6174fac
btrfs: pass unaligned length to btrfs_cmp_data()

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 <mfasheh@suse.de>
Reviewed-by: David Sterba <dsterba@suse.cz>
Signed-off-by: Chris Mason <clm@fb.com>
fs/btrfs/ioctl.c