diff options
| author | 2022-08-08 13:45:42 +0800 | |
|---|---|---|
| committer | 2022-09-26 12:27:55 +0200 | |
| commit | 8686c40e67e4fe3b2c439d63f33b6e91881db1d5 (patch) | |
| tree | 133cf67ae697bc5bb39021e4c98231edcef80f18 /fs/btrfs/tree-log.c | |
| parent | btrfs: scrub: remove scrub_sector::page and use scrub_block::pages instead (diff) | |
| download | wireguard-linux-8686c40e67e4fe3b2c439d63f33b6e91881db1d5.tar.xz wireguard-linux-8686c40e67e4fe3b2c439d63f33b6e91881db1d5.zip | |
btrfs: scrub: move logical/physical/dev/mirror_num from scrub_sector to scrub_block
Currently we store the following members in scrub_sector:
- logical
- physical
- physical_for_dev_replace
- dev
- mirror_num
However the current scrub code has ensured that scrub_blocks never cross
stripe boundary.
This is caused by the entry functions (scrub_simple_mirror,
scrub_simple_stripe), thus every scrub_block will not cross stripe
boundary.
Thus this makes it possible to move those members into scrub_block other
than putting them into scrub_sector.
This should save quite some memory, as a scrub_block can be as large as 64
sectors, even for metadata it's 16 sectors byte default.
Signed-off-by: Qu Wenruo <wqu@suse.com>
Signed-off-by: David Sterba <dsterba@suse.com>
Diffstat (limited to 'fs/btrfs/tree-log.c')
0 files changed, 0 insertions, 0 deletions
