diff options
author | jeff <jeff@FreeBSD.org> | 2002-05-04 21:49:29 +0000 |
---|---|---|
committer | jeff <jeff@FreeBSD.org> | 2002-05-04 21:49:29 +0000 |
commit | 926e98b7197f0c7e8348433329c5b551b2e9a5dc (patch) | |
tree | 20624c28d9fb11fdcb6fb1f10efcfe18f1ce75b0 /sys/vm/uma_core.c | |
parent | 7bc3ad5ab720413e193a9a24e1e5ca0aee407394 (diff) | |
download | FreeBSD-src-926e98b7197f0c7e8348433329c5b551b2e9a5dc.zip FreeBSD-src-926e98b7197f0c7e8348433329c5b551b2e9a5dc.tar.gz |
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
Diffstat (limited to 'sys/vm/uma_core.c')
-rw-r--r-- | sys/vm/uma_core.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/vm/uma_core.c b/sys/vm/uma_core.c index 39aca9e..7532e73 100644 --- a/sys/vm/uma_core.c +++ b/sys/vm/uma_core.c @@ -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; |