diff options
author | Qu Wenruo <wqu@suse.com> | 2023-03-20 10:12:53 +0800 |
---|---|---|
committer | David Sterba <dsterba@suse.com> | 2023-04-17 18:01:23 +0200 |
commit | 97cf8f37542ab5764ab397257e8844fb09f91d1c (patch) | |
tree | ae3cd3cecbf32a3ce78848bdded1d85742b5bd63 /lib/netdev-notifier-error-inject.c | |
parent | a3ddbaebc7c9bcdaf0e9bf39780bbad4ff1b569f (diff) | |
download | lwn-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/netdev-notifier-error-inject.c')
0 files changed, 0 insertions, 0 deletions