diff options
| author | 2022-05-27 15:28:18 +0800 | |
|---|---|---|
| committer | 2022-07-25 17:44:34 +0200 | |
| commit | 381b9b4c9cf968c3154d1bad736d11559a38f1c9 (patch) | |
| tree | 123ee8d572330ef896c67f3b33747a4a5e15a486 /fs/btrfs/compression.c | |
| parent | btrfs: use integrated bitmaps for btrfs_raid_bio::dbitmap and finish_pbitmap (diff) | |
| download | wireguard-linux-381b9b4c9cf968c3154d1bad736d11559a38f1c9.tar.xz wireguard-linux-381b9b4c9cf968c3154d1bad736d11559a38f1c9.zip | |
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 <wqu@suse.com>
Signed-off-by: David Sterba <dsterba@suse.com>
Diffstat (limited to 'fs/btrfs/compression.c')
0 files changed, 0 insertions, 0 deletions
