diff options
author | alc <alc@FreeBSD.org> | 2002-03-17 18:37:37 +0000 |
---|---|---|
committer | alc <alc@FreeBSD.org> | 2002-03-17 18:37:37 +0000 |
commit | cc6d626788c6448dae7abd98f475be73ffc73109 (patch) | |
tree | 0b944a5d6ce0b771802609250b1d7119075f90c0 /sys/vm | |
parent | a54439fd096c5669b5ac1c70edb5346468237953 (diff) | |
download | FreeBSD-src-cc6d626788c6448dae7abd98f475be73ffc73109.zip FreeBSD-src-cc6d626788c6448dae7abd98f475be73ffc73109.tar.gz |
Remove vm_object_count: It's unused, incorrectly maintained and duplicates
information maintained by the zone allocator.
Diffstat (limited to 'sys/vm')
-rw-r--r-- | sys/vm/vm_object.c | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/sys/vm/vm_object.c b/sys/vm/vm_object.c index 5912af0..a561c7c 100644 --- a/sys/vm/vm_object.c +++ b/sys/vm/vm_object.c @@ -138,7 +138,6 @@ static int vm_object_page_collect_flush(vm_object_t object, vm_page_t p, int cur struct object_q vm_object_list; static struct mtx vm_object_list_mtx; /* lock for object list and count */ -static long vm_object_count; /* count of all objects */ vm_object_t kernel_object; vm_object_t kmem_object; static struct vm_object kernel_object_store; @@ -193,7 +192,7 @@ _vm_object_allocate(objtype_t type, vm_size_t size, vm_object_t object) object->generation++; TAILQ_INSERT_TAIL(&vm_object_list, object, object_list); - vm_object_count++; + object_hash_rand = object->hash_rand; } @@ -209,7 +208,6 @@ vm_object_init(void) TAILQ_INIT(&vm_object_list); mtx_init(&vm_object_list_mtx, "vm object_list", MTX_DEF); - vm_object_count = 0; kernel_object = &kernel_object_store; _vm_object_allocate(OBJT_DEFAULT, OFF_TO_IDX(VM_MAX_KERNEL_ADDRESS - VM_MIN_KERNEL_ADDRESS), @@ -1484,7 +1482,6 @@ vm_object_collapse(vm_object_t object) backing_object, object_list ); - vm_object_count--; zfree(obj_zone, backing_object); |