aboutsummaryrefslogtreecommitdiff
path: root/sys
diff options
context:
space:
mode:
authorKonstantin Belousov <kib@FreeBSD.org>2011-01-15 21:56:38 +0000
committerKonstantin Belousov <kib@FreeBSD.org>2011-01-15 21:56:38 +0000
commitc6c9025b65a623bd482eeeff9451974711b381e1 (patch)
treee8c8a8be95720384e534baae43c7846662fdd8e0 /sys
parenta043cc4c68b0e8b0ed716275ac3df27621d1b3f0 (diff)
downloadsrc-c6c9025b65a623bd482eeeff9451974711b381e1.tar.gz
src-c6c9025b65a623bd482eeeff9451974711b381e1.zip
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
Notes
Notes: svn path=/head/; revision=217463
Diffstat (limited to 'sys')
-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 9e04da634233..09b7c5d6a434 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