summaryrefslogtreecommitdiffstats
path: root/sys/vm/vm_object.c
diff options
context:
space:
mode:
authorattilio <attilio@FreeBSD.org>2007-06-10 21:59:14 +0000
committerattilio <attilio@FreeBSD.org>2007-06-10 21:59:14 +0000
commite9fc4edc4441a4cdc380539f97a90207de0cd092 (patch)
tree5076d8c3c653c4deb666bc72dcf20bf604e5fb6e /sys/vm/vm_object.c
parent445024c7ff4986844b8675e79a722921503413dc (diff)
downloadFreeBSD-src-e9fc4edc4441a4cdc380539f97a90207de0cd092.zip
FreeBSD-src-e9fc4edc4441a4cdc380539f97a90207de0cd092.tar.gz
Optimize vmmeter locking.
In particular: - Add an explicative table for locking of struct vmmeter members - Apply new rules for some of those members - Remove some unuseful comments Heavily reviewed by: alc, bde, jeff Approved by: jeff (mentor)
Diffstat (limited to 'sys/vm/vm_object.c')
-rw-r--r--sys/vm/vm_object.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/vm/vm_object.c b/sys/vm/vm_object.c
index a6de918..dfcade1 100644
--- a/sys/vm/vm_object.c
+++ b/sys/vm/vm_object.c
@@ -655,7 +655,7 @@ vm_object_terminate(vm_object_t object)
"p->busy = %d, p->flags %x\n", p, p->busy, p->flags));
if (p->wire_count == 0) {
vm_page_free(p);
- PCPU_INC(cnt.v_pfree);
+ cnt.v_pfree++;
} else {
vm_page_remove(p);
}
OpenPOWER on IntegriCloud