]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit2a8bae400cb6f582fa7004e39946db9ad5f3b414
tree7b279081abd6730df3fb41bbb398445201ff0aae
parent70c831c01f7677141f589474f9e6193eb7f500d9
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