From: Mark Fasheh Date: Tue, 30 Jun 2015 21:42:04 +0000 (-0700) Subject: btrfs: pass unaligned length to btrfs_cmp_data() X-Git-Tag: omap-for-v4.2/fixes-rc2-v2~20^2~8 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=207910ddeeda38fd54544d94f8c8ca5a9632cc25;p=pandora-kernel.git 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 Reviewed-by: David Sterba Signed-off-by: Chris Mason --- Reading git-diff-tree failed