]> git.ipfire.org Git - thirdparty/linux.git/commit
btrfs: reduce size of struct tree_mod_elem
authorFilipe Manana <fdmanana@suse.com>
Tue, 1 Jul 2025 22:01:56 +0000 (23:01 +0100)
committerDavid Sterba <dsterba@suse.com>
Mon, 21 Jul 2025 22:09:20 +0000 (00:09 +0200)
commitaee10fe4e4f6d9e3444b4309ae2187ce4e9fb00f
tree98f103563fe8d9edb335901936de2943ad55222b
parentd30b236a3e706b1225accaff686d56d3bd4e8007
btrfs: reduce size of struct tree_mod_elem

Several members are used for specific types of tree mod log operations so
they can be placed in a union in order to reduce the structure's size.

This reduces the structure size from 112 bytes to 88 bytes on x86_64,
so we can now use the kmalloc-96 slab instead of the kmalloc-128 slab.

Reviewed-by: Boris Burkov <boris@bur.io>
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/tree-mod-log.c