aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDenys Vlasenko <vda.linux@googlemail.com>2020-11-19 13:58:25 +0100
committerDenys Vlasenko <vda.linux@googlemail.com>2020-11-19 13:58:25 +0100
commit2c92d1ec5802084e3bab336c5cd5816df88cb44d (patch)
treef0a12d342a6c491b5c6312cd0d802c141cecf4fe
parentddfdf68ca1d925712a042700118e29f26137f9bd (diff)
downloadbusybox-w32-2c92d1ec5802084e3bab336c5cd5816df88cb44d.tar.gz
busybox-w32-2c92d1ec5802084e3bab336c5cd5816df88cb44d.tar.bz2
busybox-w32-2c92d1ec5802084e3bab336c5cd5816df88cb44d.zip
volume_id: improve struct layout (smaller offesets, smaller insns on x86)
function old new delta volume_id_probe_xfs 101 98 -3 volume_id_probe_vfat 827 824 -3 volume_id_probe_udf 541 538 -3 volume_id_probe_ubifs 67 64 -3 volume_id_probe_squashfs 86 83 -3 volume_id_probe_romfs 97 94 -3 volume_id_probe_reiserfs 246 243 -3 volume_id_probe_ocfs2 110 107 -3 volume_id_probe_ntfs 288 285 -3 volume_id_probe_nilfs 100 97 -3 volume_id_probe_minix 85 82 -3 volume_id_probe_luks 92 89 -3 volume_id_probe_linux_swap 251 248 -3 volume_id_probe_linux_raid 131 128 -3 volume_id_probe_lfs 62 59 -3 volume_id_probe_jfs 110 107 -3 volume_id_probe_iso9660 318 315 -3 volume_id_probe_f2fs 107 104 -3 volume_id_probe_exfat 285 282 -3 volume_id_probe_erofs 89 86 -3 volume_id_probe_cramfs 67 64 -3 volume_id_probe_btrfs 134 131 -3 volume_id_probe_bcache 107 104 -3 volume_id_probe_sysv 194 188 -6 volume_id_probe_hfs_hfsplus 518 512 -6 add_to_uuid_cache 271 265 -6 volume_id_probe_ext 131 122 -9 ------------------------------------------------------------------------------ (add/remove: 0/0 grow/shrink: 0/27 up/down: 0/-96) Total: -96 bytes Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
-rw-r--r--util-linux/volume_id/volume_id_internal.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/util-linux/volume_id/volume_id_internal.h b/util-linux/volume_id/volume_id_internal.h
index 609beb84e..b1e44481f 100644
--- a/util-linux/volume_id/volume_id_internal.h
+++ b/util-linux/volume_id/volume_id_internal.h
@@ -66,6 +66,9 @@ struct volume_id {
66 uint8_t *sbbuf; 66 uint8_t *sbbuf;
67 uint8_t *seekbuf; 67 uint8_t *seekbuf;
68 uint64_t seekbuf_off; 68 uint64_t seekbuf_off;
69#if ENABLE_FEATURE_BLKID_TYPE
70 const char *type;
71#endif
69#ifdef UNUSED_PARTITION_CODE 72#ifdef UNUSED_PARTITION_CODE
70 struct volume_id_partition *partitions; 73 struct volume_id_partition *partitions;
71 size_t partition_count; 74 size_t partition_count;
@@ -80,9 +83,6 @@ struct volume_id {
80// char type_version[VOLUME_ID_FORMAT_SIZE]; 83// char type_version[VOLUME_ID_FORMAT_SIZE];
81// smallint usage_id; 84// smallint usage_id;
82// const char *usage; 85// const char *usage;
83#if ENABLE_FEATURE_BLKID_TYPE
84 const char *type;
85#endif
86}; 86};
87 87
88struct volume_id* FAST_FUNC volume_id_open_node(int fd); 88struct volume_id* FAST_FUNC volume_id_open_node(int fd);