Skip to content

Commit

Permalink
Use UMA_SLAB_SPACE macro. No functional change here.
Browse files Browse the repository at this point in the history
  • Loading branch information
glebius committed Apr 2, 2018
1 parent f1818db commit a76113e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion sys/vm/uma_core.c
Original file line number Diff line number Diff line change
Expand Up @@ -1481,7 +1481,7 @@ keg_ctor(void *mem, int size, void *udata, int flags)
if (keg->uk_flags & UMA_ZONE_CACHESPREAD) {
keg_cachespread_init(keg);
} else {
if (keg->uk_size > (UMA_SLAB_SIZE - sizeof(struct uma_slab)))
if (keg->uk_size > UMA_SLAB_SPACE)
keg_large_init(keg);
else
keg_small_init(keg);
Expand Down

0 comments on commit a76113e

Please sign in to comment.