diff options
Diffstat (limited to 'sys/vm/uma_core.c')
-rw-r--r-- | sys/vm/uma_core.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/sys/vm/uma_core.c b/sys/vm/uma_core.c index bac697a..8418fed 100644 --- a/sys/vm/uma_core.c +++ b/sys/vm/uma_core.c @@ -1801,6 +1801,8 @@ uma_zone_set_max(uma_zone_t zone, int nitems) zone->uz_maxpages = nitems * zone->uz_ppera; else zone->uz_maxpages = nitems / zone->uz_ipers; + if (zone->uz_maxpages * zone->uz_ipers < nitems) + zone->uz_maxpages++; ZONE_UNLOCK(zone); } |