btrfs: scrub: introduce a helper to verify one metadata block
authorQu Wenruo <wqu@suse.com>
Mon, 20 Mar 2023 02:12:52 +0000 (10:12 +0800)
committerDavid Sterba <dsterba@suse.com>
Mon, 17 Apr 2023 16:01:23 +0000 (18:01 +0200)
commita3ddbaebc7c9bcdaf0e9bf39780bbad4ff1b569f
treeffcd37cc008e19171c71c606039141e63f7735a2
parentb979547513ff060ebe4a381b69d8478b18e1cc4e
btrfs: scrub: introduce a helper to verify one metadata block

The new helper, scrub_verify_one_metadata(), is almost the same as
scrub_checksum_tree_block().

The difference is in how we grab the pages from other structures.

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
fs/btrfs/scrub.h