]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commitfbfbb9d925ce86e5da1610b98eb2c8598905de1b
treef696a3a2b7800b8227cae87511752564febca4ba
parent8e00f716330d43b89ba1b4b570629c2145318a5b
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