Use pages instead of uz_maxpages, which has not been initialized yet, when

creating the vm_object.  This was broken after the code was rearranged to
grab giant itself.

Spotted by:     alc
This commit is contained in:
Jeff Roberson 2002-05-04 21:49:29 +00:00
parent c1d57c383a
commit c7173f58fa
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=96044

View file

@ -1873,10 +1873,10 @@ uma_zone_set_obj(uma_zone_t zone, struct vm_object *obj, int count)
if (obj == NULL)
obj = vm_object_allocate(OBJT_DEFAULT,
zone->uz_maxpages);
pages);
else
_vm_object_allocate(OBJT_DEFAULT,
zone->uz_maxpages, obj);
pages, obj);
ZONE_LOCK(zone);
zone->uz_kva = kva;