]> 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)
commita7cb158dfe504038fad576313e2251fe66686aa2
treef87d0001ed6d05e5e16d7b1b3bccb745889b9315
parenta6b46dbbe017c6c19e2a95b2e82309a5d7d7f057
btrfs: scrub: Remove unused copy_nocow_pages and its callchain

Since commit 8b525a0fc0db9bc7c107 ("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