Btrfs: remove redundant check for swapfiles when reflinking
authorFilipe Manana <fdmanana@suse.com>
Tue, 8 Jan 2019 11:43:18 +0000 (11:43 +0000)
committerDavid Sterba <dsterba@suse.com>
Mon, 25 Feb 2019 13:13:20 +0000 (14:13 +0100)
commit0f39b6056323e3d5e82cdef0f811713fe05fbb12
tree7b279081abd6730df3fb41bbb398445201ff0aae
parent420829d8ea13976e084be8cc2531b52f81e6dd02
Btrfs: remove redundant check for swapfiles when reflinking

Checking if either of the inodes corresponds to a swapfile is already
performed by generic_remap_file_range_prep(), so we do not need to do
it in the btrfs clone and deduplication functions.

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