summaryrefslogtreecommitdiff
path: root/fs/btrfs/volumes.h
diff options
context:
space:
mode:
authorAnand Jain <anand.jain@oracle.com>2023-05-24 15:02:35 +0300
committerDavid Sterba <dsterba@suse.com>2023-06-19 14:59:28 +0300
commit4693893bf8d01c37a8952a3ea2a1bdfeb4106277 (patch)
tree735d74f6b414e4a319d6941e3646d4f7d0a41a21 /fs/btrfs/volumes.h
parent46672a44b023461d13f063bc95bf832f8124177f (diff)
downloadlinux-4693893bf8d01c37a8952a3ea2a1bdfeb4106277.tar.xz
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: Anand Jain <anand.jain@oracle.com> Signed-off-by: David Sterba <dsterba@suse.com>
Diffstat (limited to 'fs/btrfs/volumes.h')
-rw-r--r--fs/btrfs/volumes.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/fs/btrfs/volumes.h b/fs/btrfs/volumes.h
index 5cbbee32748c..236ae696c984 100644
--- a/fs/btrfs/volumes.h
+++ b/fs/btrfs/volumes.h
@@ -281,7 +281,6 @@ enum btrfs_read_policy {
struct btrfs_fs_devices {
u8 fsid[BTRFS_FSID_SIZE]; /* FS specific uuid */
u8 metadata_uuid[BTRFS_FSID_SIZE];
- bool fsid_change;
struct list_head fs_list;
/*
@@ -337,7 +336,6 @@ struct btrfs_fs_devices {
struct list_head alloc_list;
struct list_head seed_list;
- bool seeding;
int opened;
@@ -347,6 +345,8 @@ struct btrfs_fs_devices {
bool rotating;
/* Devices support TRIM/discard commands */
bool discardable;
+ bool fsid_change;
+ bool seeding;
struct btrfs_fs_info *fs_info;
/* sysfs kobjects */