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 <sharpd@nvidia.com>
This commit is contained in:
Donald Sharp 2024-01-31 11:33:36 -05:00
parent a2caf2b5e1
commit a8e8f1bc72

View File

@ -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;
};