From a8e8f1bc72b7b638d29dc6c0bf78679487a3331d Mon Sep 17 00:00:00 2001 From: Donald Sharp Date: Wed, 31 Jan 2024 11:33:36 -0500 Subject: [PATCH] lib: Reduce size of hash_bucket by 8 bytes pahole reports that the hash_bucket has 2 4 byte holes in the data structure. Let's reorganize this a bit and save 8 bytes per hash_bucket instance. Signed-off-by: Donald Sharp --- lib/hash.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/lib/hash.h b/lib/hash.h index 810faf9030..2d00a334be 100644 --- a/lib/hash.h +++ b/lib/hash.h @@ -28,12 +28,12 @@ struct hash_bucket { */ int len; - /* Linked list. */ - struct hash_bucket *next; - /* Hash key. */ unsigned int key; + /* Linked list. */ + struct hash_bucket *next; + /* Data. */ void *data; }; -- 2.39.5