OSDN Git Service

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)
commit9bebe665c3e4f4af30add8602217938d8c17ee23
treef87d0001ed6d05e5e16d7b1b3bccb745889b9315
parenta944442c2b8a420301e7830f976bab8cc86a2b4d
btrfs: scrub: Remove unused copy_nocow_pages and its callchain

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