]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
btrfs: remove unit field from struct btrfs_free_space_ctl
authorFilipe Manana <fdmanana@suse.com>
Wed, 15 Apr 2026 14:02:27 +0000 (15:02 +0100)
committerDavid Sterba <dsterba@suse.com>
Mon, 8 Jun 2026 13:53:29 +0000 (15:53 +0200)
commitacef2bf43aa222e7d5396ba889789e2ce14f2062
treeed9af2539128c3a1868376843c4a125e24d0cd26
parent5e4b57f77ca3e39bde9681e4d79ea564bbd4fece
btrfs: remove unit field from struct btrfs_free_space_ctl

The unit field always has a value matching the sector size, and since we
have a block group pointer in the structure, we can access the block group
and then its fs_info field to get to the sector size. So remove the field,
which will allow us later to shrink the structure size.

Signed-off-by: Filipe Manana <fdmanana@suse.com>
Reviewed-by: David Sterba <dsterba@suse.com>
Signed-off-by: David Sterba <dsterba@suse.com>
fs/btrfs/free-space-cache.c
fs/btrfs/free-space-cache.h