- Fix a round down bogon in uma_zone_set_max().

Submitted by: jeff@
This commit is contained in:
arr 2002-04-25 06:24:40 +00:00
parent 04da61f7a8
commit 99bf18775e

View File

@ -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);
}