diff --git a/sys/vm/uma_core.c b/sys/vm/uma_core.c index a792cf4c3b67..7a535ca6643e 100644 --- a/sys/vm/uma_core.c +++ b/sys/vm/uma_core.c @@ -1127,7 +1127,9 @@ keg_small_init(uma_keg_t keg) keg->uk_rsize = rsize; keg->uk_ppera = 1; - if (keg->uk_flags & UMA_ZONE_REFCNT) { + if (keg->uk_flags & UMA_ZONE_OFFPAGE) { + shsize = 0; + } else if (keg->uk_flags & UMA_ZONE_REFCNT) { rsize += UMA_FRITMREF_SZ; /* linkage & refcnt */ shsize = sizeof(struct uma_slab_refcnt); } else {