Btrfs: remove no longer needed range length checks for deduplication
authorFilipe Manana <fdmanana@suse.com>
Wed, 12 Dec 2018 18:05:59 +0000 (18:05 +0000)
committerDavid Sterba <dsterba@suse.com>
Mon, 25 Feb 2019 13:13:40 +0000 (14:13 +0100)
commit57a50e2506df3f603580f8f30247caa7ac902369
tree37b759c72d33535790e8428fc81102f38adf66f1
parenta3baaf0d786e22fc86295fda9c58ba0dee07599f
Btrfs: remove no longer needed range length checks for deduplication

Comparing the content of the pages in the range to deduplicate is now
done in generic_remap_checks called by the generic helper
generic_remap_file_range_prep(), which takes care of ensuring we do not
compare/deduplicate undefined data beyond a file's EOF (range from EOF
to the next block boundary). So remove these checks which are now
redundant.

Reviewed-by: Nikolay Borisov <nborisov@suse.com>
Signed-off-by: Filipe Manana <fdmanana@suse.com>
Signed-off-by: David Sterba <dsterba@suse.com>
fs/btrfs/ioctl.c