From d1e17bc202cabbe27b631e72b7174a473305d4be Mon Sep 17 00:00:00 2001 From: Zdenek Kabelac Date: Tue, 29 Oct 2024 16:33:17 +0100 Subject: [PATCH] metadata: pahole logical_volume Shuffle some variables to remove 'extra' alignment holes within the structure thus making it smaller. --- lib/metadata/lv.h | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/lib/metadata/lv.h b/lib/metadata/lv.h index b64bc8cb6..398574716 100644 --- a/lib/metadata/lv.h +++ b/lib/metadata/lv.h @@ -27,16 +27,15 @@ struct logical_volume { struct volume_group *vg; - uint64_t status; - alloc_policy_t alloc; struct profile *profile; + uint64_t status; + uint64_t size; /* Sectors visible */ + uint32_t le_count; /* Logical extents visible */ + alloc_policy_t alloc; uint32_t read_ahead; int32_t major; int32_t minor; - uint64_t size; /* Sectors visible */ - uint32_t le_count; /* Logical extents visible */ - uint32_t origin_count; uint32_t external_count; struct dm_list snapshot_segs;