diff options
author | Qu Wenruo <wqu@suse.com> | 2022-05-27 15:28:17 +0800 |
---|---|---|
committer | David Sterba <dsterba@suse.com> | 2022-07-25 17:44:34 +0200 |
commit | c67c68eb57f1343dd7e315156ff0334ab72158fd (patch) | |
tree | 79dffcec963d8202454e4c8f3597cf4ad71c881a /fs/btrfs/scrub.c | |
parent | 099aa97213fa99ee5ce8e35c3e9f0ec150517609 (diff) | |
download | linux-c67c68eb57f1343dd7e315156ff0334ab72158fd.tar.gz |
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 <wqu@suse.com>
Signed-off-by: David Sterba <dsterba@suse.com>
Diffstat (limited to 'fs/btrfs/scrub.c')
0 files changed, 0 insertions, 0 deletions