summaryrefslogtreecommitdiff
path: root/include/linux/i2c/git@git.tavy.me:linux.git
diff options
context:
space:
mode:
authorQu Wenruo <wqu@suse.com>2026-01-10 10:08:28 +1030
committerDavid Sterba <dsterba@suse.com>2026-02-03 07:51:43 +0100
commit4681dbcfdc33d6627193425222819577a89857cc (patch)
treecf07840728a62e07e9056d38a61ecf12bdb17db7 /include/linux/i2c/git@git.tavy.me:linux.git
parent8ecf596ed822d481d1ad0bb589a7d5b9a7e82898 (diff)
btrfs: shrink the size of btrfs_device
There are two main causes of holes inside btrfs_device: - The single bytes member of last_flush_error Not only it's a single byte member, but we never really care about the exact error number. - The @devt member Which is placed between two u64 members. Shrink the size of btrfs_device by: - Use a single bit flag for flush error Use BTRFS_DEV_STATE_FLUSH_FAILED so that we no longer need that dedicated member. - Move @devt to the hole after dev_stat_values[] This reduces the size of btrfs_device from 528 to exact 512 bytes for x86_64. Reviewed-by: Boris Burkov <boris@bur.io> Signed-off-by: Qu Wenruo <wqu@suse.com> Reviewed-by: David Sterba <dsterba@suse.com> Signed-off-by: David Sterba <dsterba@suse.com>
Diffstat (limited to 'include/linux/i2c/git@git.tavy.me:linux.git')
0 files changed, 0 insertions, 0 deletions