forked from torvalds/linux
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
btrfs: scrub: add helpers to fulfill csum/extent_generation
This patch will introduce two new major helpers: - scrub_fs_locate_and_fill_stripe() This will find a stripe which contains any extent. And then fill corresponding sectors inside sectors[] array with its extent_type. If it's a metadata extent, it will also fill eb_generation member. - scrub_fs_fill_stripe_csum() This is for data block groups only. This helper will find all csums for the stripe, and copy the csum into the corresponding position inside scrub_fs_ctx->csum_buf. Signed-off-by: Qu Wenruo <wqu@suse.com>
- Loading branch information
1 parent
bb4fccd
commit 02fbe0e
Showing
1 changed file
with
301 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters