- Fix a round down bogon in uma_zone_set_max().

Submitted by: jeff@
This commit is contained in:
Andrew R. Reiter 2002-04-25 06:24:40 +00:00
parent 44493e088a
commit d4d6aee5a0

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