summaryrefslogtreecommitdiff
path: root/lib/string_helpers.c
diff options
context:
space:
mode:
authorQu Wenruo <wqu@suse.com>2023-03-20 10:12:53 +0800
committerDavid Sterba <dsterba@suse.com>2023-04-17 18:01:23 +0200
commit97cf8f37542ab5764ab397257e8844fb09f91d1c (patch)
treeae3cd3cecbf32a3ce78848bdded1d85742b5bd63 /lib/string_helpers.c
parenta3ddbaebc7c9bcdaf0e9bf39780bbad4ff1b569f (diff)
downloadlwn-97cf8f37542ab5764ab397257e8844fb09f91d1c.tar.gz
lwn-97cf8f37542ab5764ab397257e8844fb09f91d1c.zip
btrfs: scrub: introduce a helper to verify one scrub_stripe
The new helper, scrub_verify_stripe(), shares the same main workflow of the old scrub code. The major differences are: - How pages/page_offset is grabbed Everything can be grabbed from scrub_stripe easily. - When error report happens Currently the helper only verifies the sectors, not really doing any error reporting. The error reporting would be done after we have done the repair. Signed-off-by: Qu Wenruo <wqu@suse.com> Reviewed-by: David Sterba <dsterba@suse.com> Signed-off-by: David Sterba <dsterba@suse.com>
Diffstat (limited to 'lib/string_helpers.c')
0 files changed, 0 insertions, 0 deletions