diff options
| author | Qu Wenruo <[email protected]> | 2022-05-27 15:28:18 +0800 |
|---|---|---|
| committer | David Sterba <[email protected]> | 2022-07-25 17:44:34 +0200 |
| commit | 381b9b4c9cf968c3154d1bad736d11559a38f1c9 (patch) | |
| tree | 123ee8d572330ef896c67f3b33747a4a5e15a486 /tools/perf/scripts/python | |
| parent | c67c68eb57f1343dd7e315156ff0334ab72158fd (diff) | |
btrfs: use integrated bitmaps for scrub_parity::dbitmap and ebitmap
Previously we use "unsigned long *" for those two bitmaps.
But since we only support fixed stripe length (64KiB, already checked in
tree-checker), "unsigned long *" is really a waste of memory, while we
can just use "unsigned long".
This saves us 8 bytes in total for scrub_parity.
To be extra safe, add an ASSERT() making sure calclulated @nsectors is
always smaller than BITS_PER_LONG.
Signed-off-by: Qu Wenruo <[email protected]>
Signed-off-by: David Sterba <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python')
0 files changed, 0 insertions, 0 deletions