aboutsummaryrefslogtreecommitdiff
path: root/fs/btrfs/dev-replace.c
diff options
context:
space:
mode:
authorFilipe Manana <fdmanana@suse.com>2024-09-24 17:12:32 +0100
committerDavid Sterba <dsterba@suse.com>2024-11-11 14:34:13 +0100
commitc28b97f53be7b598ae5fb47cc9dc80912019d7a8 (patch)
treeae1134bdedea9b4193e2ee7ddd9e99593c0897e4 /fs/btrfs/dev-replace.c
parent2206265f41e979b37213fa6da14e73f837c57a54 (diff)
downloadlinux-c28b97f53be7b598ae5fb47cc9dc80912019d7a8.tar.gz
linux-c28b97f53be7b598ae5fb47cc9dc80912019d7a8.tar.bz2
linux-c28b97f53be7b598ae5fb47cc9dc80912019d7a8.zip
btrfs: qgroups: remove bytenr field from struct btrfs_qgroup_extent_record
Now that we track qgroup extent records in a xarray we don't need to have a "bytenr" field in struct btrfs_qgroup_extent_record, since we can get it from the index of the record in the xarray. So remove the field and grab the bytenr from either the index key or any other place where it's available (delayed refs). This reduces the size of struct btrfs_qgroup_extent_record from 40 bytes down to 32 bytes, meaning that we now can store 128 instances of this structure instead of 102 per 4K page. Reviewed-by: Qu Wenruo <wqu@suse.com> Signed-off-by: Filipe Manana <fdmanana@suse.com> Reviewed-by: David Sterba <dsterba@suse.com> Signed-off-by: David Sterba <dsterba@suse.com>
Diffstat (limited to 'fs/btrfs/dev-replace.c')
0 files changed, 0 insertions, 0 deletions