Since now we support 256 items per slab, we need more bits

for us_freecount.

This grows uma_slab_head on 32-bit arches, but growth isn't
significant. Taking kmem zones as example, only the 32 byte
zone is affected, ipers is reduced from 113 to 112.

In collaboration with:	kib
This commit is contained in:
glebius 2013-04-09 15:15:52 +00:00
parent 0da55a1ff7
commit d0006df0df

View File

@ -246,7 +246,7 @@ struct uma_slab_head {
SLIST_ENTRY(uma_slab) us_hlink; /* Link for hash table */
u_int8_t *us_data; /* First item */
u_int8_t us_flags; /* Page flags see uma.h */
u_int8_t us_freecount; /* How many are free? */
u_int16_t us_freecount; /* How many are free? */
u_int8_t us_firstfree; /* First free item index */
};