diff options
| author | Qu Wenruo <[email protected]> | 2022-05-27 15:28:17 +0800 |
|---|---|---|
| committer | David Sterba <[email protected]> | 2022-07-25 17:44:34 +0200 |
| commit | c67c68eb57f1343dd7e315156ff0334ab72158fd (patch) | |
| tree | 79dffcec963d8202454e4c8f3597cf4ad71c881a /tools/perf/scripts/python | |
| parent | 099aa97213fa99ee5ce8e35c3e9f0ec150517609 (diff) | |
btrfs: use integrated bitmaps for btrfs_raid_bio::dbitmap and finish_pbitmap
Previsouly 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 btrfs_raid_bio.
To be extra safe, add an ASSERT() making sure calculated
@stripe_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