]> git.baikalelectronics.ru Git - kernel.git/commit
btrfs: raid56: make finish_parity_scrub() subpage compatible
authorQu Wenruo <wqu@suse.com>
Fri, 1 Apr 2022 11:23:22 +0000 (19:23 +0800)
committerDavid Sterba <dsterba@suse.com>
Mon, 16 May 2022 15:03:15 +0000 (17:03 +0200)
commitd1b3fb69a932608850c9b19451cc770888eb0784
tree8354fad4b1819859e203a40d6010c3fb7cf7081a
parent9c0b3bc22d29b1501c5cb446f5d9877f936ffe95
btrfs: raid56: make finish_parity_scrub() subpage compatible

The core is to convert direct page usage into sector_ptr usage, and
use memcpy() to replace copy_page().

For pointers usage, we need to convert it to kmap_local_page() +
sector->pgoff.

Signed-off-by: Qu Wenruo <wqu@suse.com>
Reviewed-by: David Sterba <dsterba@suse.com>
Signed-off-by: David Sterba <dsterba@suse.com>
fs/btrfs/raid56.c