OSDN Git Service

Btrfs: move duplicated nodatasum check into common reflink/dedupe helper
authorFilipe Manana <fdmanana@suse.com>
Wed, 12 Dec 2018 18:05:56 +0000 (18:05 +0000)
committerDavid Sterba <dsterba@suse.com>
Mon, 25 Feb 2019 13:13:21 +0000 (14:13 +0100)
commit500710d3b8721250e3e16796e176f57417e72492
treef696a3a2b7800b8227cae87511752564febca4ba
parent951e05a90469e29326715e7e3aefd4680748b4fa
Btrfs: move duplicated nodatasum check into common reflink/dedupe helper

Move the check that verifies if both inodes have checksums disabled or
both have them enabled, from the clone and deduplication functions into
the new common helper btrfs_remap_file_range_prep().

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