aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/fs/btrfs/compression.c
diff options
context:
space:
mode:
authorQu Wenruo <wqu@suse.com>2022-05-27 15:28:17 +0800
committerDavid Sterba <dsterba@suse.com>2022-07-25 17:44:34 +0200
commitc67c68eb57f1343dd7e315156ff0334ab72158fd (patch)
tree79dffcec963d8202454e4c8f3597cf4ad71c881a /fs/btrfs/compression.c
parentbtrfs: use btrfs_try_lock_balance in btrfs_ioctl_balance (diff)
downloadwireguard-linux-c67c68eb57f1343dd7e315156ff0334ab72158fd.tar.xz
wireguard-linux-c67c68eb57f1343dd7e315156ff0334ab72158fd.zip
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/compression.c')
0 files changed, 0 insertions, 0 deletions