Deleted Added
full compact
26c26
< * $FreeBSD: head/sys/vm/uma_core.c 92654 2002-03-19 09:11:49Z jeff $
---
> * $FreeBSD: head/sys/vm/uma_core.c 92758 2002-03-20 05:28:34Z jeff $
601a602,604
> if (zone->uz_maxpages &&
> zone->uz_pages + zone->uz_ppera > zone->uz_maxpages)
> return (NULL);
737,740d739
<
< if (zone->uz_pages + zone->uz_ppera > zone->uz_maxpages)
< return (NULL);
<
1245,1250d1243
<
< #ifdef INVARIANTS
< if (wait == M_WAITOK)
< KASSERT(item != NULL,
< ("uma_zalloc: WAITOK set but we're returning NULL"));
< #endif
1680a1674,1685
> uma_zone_set_max(uma_zone_t zone, int nitems)
> {
> ZONE_LOCK(zone);
> if (zone->uz_ppera > 1)
> zone->uz_maxpages = nitems / zone->uz_ppera;
> else
> zone->uz_maxpages = nitems / zone->uz_ipers;
> ZONE_UNLOCK(zone);
> }
>
> /* See uma.h */
> void