]> git.baikalelectronics.ru Git - kernel.git/commit
btrfs: scrub: Remove unused copy_nocow_pages and its callchain
authorQu Wenruo <wqu@suse.com>
Wed, 6 Jun 2018 05:13:12 +0000 (13:13 +0800)
committerDavid Sterba <dsterba@suse.com>
Mon, 6 Aug 2018 11:12:29 +0000 (13:12 +0200)
commit10521b8dee954bdc49b571b2c984adff3b4d108f
treef87d0001ed6d05e5e16d7b1b3bccb745889b9315
parent46582c6adbef4f92e37ef9728e70ece2712d88fa
btrfs: scrub: Remove unused copy_nocow_pages and its callchain

Since commit 0bea07f8ce6dd7b39044 ("btrfs: scrub: Don't use inode pages
for device replace") the function is not used and we can remove all
functions down the call chain.

There was an optimization that reused inode pages to speed up device
replace, but broke when there was nodatasum and compressed page. The
potential performance gain is small so we don't loose much by removing
it and using scrub_pages same as the other pages.

Signed-off-by: Qu Wenruo <wqu@suse.com>
[ update changelog ]
Signed-off-by: David Sterba <dsterba@suse.com>
fs/btrfs/scrub.c