]> git.baikalelectronics.ru Git - kernel.git/commit
btrfs: scrub: allow scrub to work with subpage sectorsize
authorQu Wenruo <wqu@suse.com>
Wed, 2 Dec 2020 06:48:11 +0000 (14:48 +0800)
committerDavid Sterba <dsterba@suse.com>
Wed, 9 Dec 2020 18:16:11 +0000 (19:16 +0100)
commite0a1c66eb8f1aa9c8798c716c7a0cd21e953e199
tree5ab60f3ecb3a6cb3189d7be7f0bc2fd19087e1f7
parentb1ffd04527d7a3e56b88d4b0a07c8d19c980223e
btrfs: scrub: allow scrub to work with subpage sectorsize

Since btrfs scrub is utilizing its own infrastructure to submit
read/write, scrub is independent from all other routines.

This brings one very neat feature, allow us to read 4K data into offset
0 of a 64K page.  So is the writeback routine.

This makes scrub on subpage sector size much easier to implement, and
thanks to previous commits which just changed the implementation to
always do scrub based on sector size, now scrub can handle subpage
filesystem without any problem.

This patch will just remove the restriction on
(sectorsize != PAGE_SIZE), to make scrub finally work on subpage
filesystems.

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/scrub.c