commit | 207910ddeeda38fd54544d94f8c8ca5a9632cc25 | [log] [tgz] |
---|---|---|
author | Mark Fasheh <mfasheh@suse.de> | Tue Jun 30 14:42:04 2015 -0700 |
committer | Chris Mason <clm@fb.com> | Wed Jul 01 17:17:13 2015 -0700 |
tree | 1d44e13585134d22b5d62a48a67c8cebab6154c5 | |
parent | a89ca6f24ffe435edad57de02eaabd37a2c6bff6 [diff] |
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>