diff options
| author | Donald Sharp <sharpd@nvidia.com> | 2024-01-31 11:33:36 -0500 | 
|---|---|---|
| committer | Donald Sharp <sharpd@nvidia.com> | 2024-02-01 07:53:31 -0500 | 
| commit | a8e8f1bc72b7b638d29dc6c0bf78679487a3331d (patch) | |
| tree | a02058df755d1fe09ad90e8dc11f338eb0922c7e /lib/hash.h | |
| parent | a2caf2b5e132ad6d50d83348d8efe9cdea72ec6e (diff) | |
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>
Diffstat (limited to 'lib/hash.h')
| -rw-r--r-- | lib/hash.h | 6 | 
1 files 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;  };  | 
