summaryrefslogtreecommitdiff
path: root/include/linux/highmem-internal.h
diff options
context:
space:
mode:
authorDavid Sterba <dsterba@suse.com>2022-06-23 18:15:37 +0300
committerDavid Sterba <dsterba@suse.com>2022-07-25 18:45:40 +0300
commit8bfc9b2cf468c37870b980a16c345c9ba3a2010a (patch)
tree99014c525899b7f30bf86a691ffe6fa370cbf93b /include/linux/highmem-internal.h
parent710d5921d1431fa7d6fef8b47bb391256560bfd0 (diff)
downloadlinux-8bfc9b2cf468c37870b980a16c345c9ba3a2010a.tar.xz
btrfs: use enum for btrfs_block_rsv::type
The number of block group reserve types BTRFS_BLOCK_RSV_* is small and fits to u8 and there's enough left in case we want to add more. For type safety use the enum but make it 8 bits in the structure to save space. The structure size is now 48 on release build, making a slight improvement in structures where it's embedded, like btrfs_fs_info or btrfs_inode. Reviewed-by: Anand Jain <anand.jain@oracle.com> Reviewed-by: Johannes Thumshirn <johannes.thumshirn@wdc.com> Signed-off-by: David Sterba <dsterba@suse.com>
Diffstat (limited to 'include/linux/highmem-internal.h')
0 files changed, 0 insertions, 0 deletions