diff options
author | attilio <attilio@FreeBSD.org> | 2007-06-04 21:45:18 +0000 |
---|---|---|
committer | attilio <attilio@FreeBSD.org> | 2007-06-04 21:45:18 +0000 |
commit | 9bd4fdf7ce811d83f0305cacc5990ec339df9f13 (patch) | |
tree | 9c942b3b9815da8b9fd9ecd5f775fdc264e8e2dc /sys/vm/vm_object.c | |
parent | e333d0ff0eb23a5f94f36fd95b4bbcfda3ccbc8f (diff) | |
download | FreeBSD-src-9bd4fdf7ce811d83f0305cacc5990ec339df9f13.zip FreeBSD-src-9bd4fdf7ce811d83f0305cacc5990ec339df9f13.tar.gz |
Do proper "locking" for missing vmmeters part.
Now, we assume no more sched_lock protection for some of them and use the
distribuited loads method for vmmeter (distribuited through CPUs).
Reviewed by: alc, bde
Approved by: jeff (mentor)
Diffstat (limited to 'sys/vm/vm_object.c')
-rw-r--r-- | sys/vm/vm_object.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/vm/vm_object.c b/sys/vm/vm_object.c index dfcade1..a6de918 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); - cnt.v_pfree++; + PCPU_INC(cnt.v_pfree); } else { vm_page_remove(p); } |