summaryrefslogtreecommitdiffstats
path: root/sys/vm/vm_object.c
diff options
context:
space:
mode:
authorkib <kib@FreeBSD.org>2011-01-15 21:56:38 +0000
committerkib <kib@FreeBSD.org>2011-01-15 21:56:38 +0000
commitccf352ab59e25a9633bea0478d6becd18b2794d1 (patch)
treee8c8a8be95720384e534baae43c7846662fdd8e0 /sys/vm/vm_object.c
parent31120cf0451bca6e369db5bba3896a425cc4f253 (diff)
downloadFreeBSD-src-ccf352ab59e25a9633bea0478d6becd18b2794d1.zip
FreeBSD-src-ccf352ab59e25a9633bea0478d6becd18b2794d1.tar.gz
For consistency, use kernel_object instead of &kernel_object_store
when initializing the object mutex. Do the same for kmem_object. Discussed with: alc MFC after: 1 week
Diffstat (limited to 'sys/vm/vm_object.c')
-rw-r--r--sys/vm/vm_object.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/vm/vm_object.c b/sys/vm/vm_object.c
index 9e04da6..09b7c5d 100644
--- a/sys/vm/vm_object.c
+++ b/sys/vm/vm_object.c
@@ -244,7 +244,7 @@ vm_object_init(void)
TAILQ_INIT(&vm_object_list);
mtx_init(&vm_object_list_mtx, "vm object_list", NULL, MTX_DEF);
- VM_OBJECT_LOCK_INIT(&kernel_object_store, "kernel object");
+ VM_OBJECT_LOCK_INIT(kernel_object, "kernel object");
_vm_object_allocate(OBJT_PHYS, OFF_TO_IDX(VM_MAX_KERNEL_ADDRESS - VM_MIN_KERNEL_ADDRESS),
kernel_object);
#if VM_NRESERVLEVEL > 0
@@ -252,7 +252,7 @@ vm_object_init(void)
kernel_object->pg_color = (u_short)atop(VM_MIN_KERNEL_ADDRESS);
#endif
- VM_OBJECT_LOCK_INIT(&kmem_object_store, "kmem object");
+ VM_OBJECT_LOCK_INIT(kmem_object, "kmem object");
_vm_object_allocate(OBJT_PHYS, OFF_TO_IDX(VM_MAX_KERNEL_ADDRESS - VM_MIN_KERNEL_ADDRESS),
kmem_object);
#if VM_NRESERVLEVEL > 0
OpenPOWER on IntegriCloud