]> git.ipfire.org Git - thirdparty/linux.git/commit
btrfs: scrub: use dedicated super block verification function to scrub one super...
authorQu Wenruo <wqu@suse.com>
Mon, 20 Mar 2023 02:12:47 +0000 (10:12 +0800)
committerDavid Sterba <dsterba@suse.com>
Mon, 17 Apr 2023 16:01:23 +0000 (18:01 +0200)
commit2a2dc22f7e9df6daa9ab56e9b97855b3a0fbfc20
tree4b3c28eaf807e4c99d78f115e3afda622c3a9c55
parentf0bb5474cff02ce24dd2599114a894f39aea03e6
btrfs: scrub: use dedicated super block verification function to scrub one super block

There is really no need to go through the super complex scrub_sectors()
to just handle super blocks.  Introduce a dedicated function to handle
super block scrubbing.

This new function will introduce a behavior change, instead of using the
complex but concurrent scrub_bio system, here we just go submit-and-wait.

There is really not much sense to care the performance of super block
scrubbing. It only has 3 super blocks at most, and they are all
scattered around the devices already.

Reviewed-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: Anand Jain <anand.jain@oracle.com>
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