- Fix a round down bogon in uma_zone_set_max().
Submitted by: jeff@
This commit is contained in:
parent
44493e088a
commit
d4d6aee5a0
@ -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);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user