Commit 4693893b authored by Anand Jain's avatar Anand Jain Committed by David Sterba

btrfs: reduce struct btrfs_fs_devices size by moving fsid_change

Pack bool fsid_change and bool seeding with other bool declarations in the
struct btrfs_fs_devices, approximately 6 bytes is saved, depending on
the config.

   before: 512 bytes
   after: 496 bytes
Signed-off-by: default avatarAnand Jain <anand.jain@oracle.com>
Signed-off-by: default avatarDavid Sterba <dsterba@suse.com>
parent 46672a44
...@@ -281,7 +281,6 @@ enum btrfs_read_policy { ...@@ -281,7 +281,6 @@ enum btrfs_read_policy {
struct btrfs_fs_devices { struct btrfs_fs_devices {
u8 fsid[BTRFS_FSID_SIZE]; /* FS specific uuid */ u8 fsid[BTRFS_FSID_SIZE]; /* FS specific uuid */
u8 metadata_uuid[BTRFS_FSID_SIZE]; u8 metadata_uuid[BTRFS_FSID_SIZE];
bool fsid_change;
struct list_head fs_list; struct list_head fs_list;
/* /*
...@@ -337,7 +336,6 @@ struct btrfs_fs_devices { ...@@ -337,7 +336,6 @@ struct btrfs_fs_devices {
struct list_head alloc_list; struct list_head alloc_list;
struct list_head seed_list; struct list_head seed_list;
bool seeding;
int opened; int opened;
...@@ -347,6 +345,8 @@ struct btrfs_fs_devices { ...@@ -347,6 +345,8 @@ struct btrfs_fs_devices {
bool rotating; bool rotating;
/* Devices support TRIM/discard commands */ /* Devices support TRIM/discard commands */
bool discardable; bool discardable;
bool fsid_change;
bool seeding;
struct btrfs_fs_info *fs_info; struct btrfs_fs_info *fs_info;
/* sysfs kobjects */ /* sysfs kobjects */
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment