summaryrefslogtreecommitdiffstats
path: root/sys
diff options
context:
space:
mode:
authoralc <alc@FreeBSD.org>2003-09-14 02:37:59 +0000
committeralc <alc@FreeBSD.org>2003-09-14 02:37:59 +0000
commit5b00bd3787596a36c65a13b490fb3f074b7bba2d (patch)
tree9966e93f540f302258e588f6ec8a2d75b9638a12 /sys
parent22256e113b74db509aa2c8943cd79f707dd37151 (diff)
downloadFreeBSD-src-5b00bd3787596a36c65a13b490fb3f074b7bba2d.zip
FreeBSD-src-5b00bd3787596a36c65a13b490fb3f074b7bba2d.tar.gz
Call vm_page_unmanage() on pages belonging to the kmem_object. This
eliminates the unnecessary overhead of managing "PV" entries for these pages.
Diffstat (limited to 'sys')
-rw-r--r--sys/vm/vm_kern.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/sys/vm/vm_kern.c b/sys/vm/vm_kern.c
index 229d6e8..3e7f622 100644
--- a/sys/vm/vm_kern.c
+++ b/sys/vm/vm_kern.c
@@ -409,6 +409,7 @@ retry:
vm_page_lock_queues();
vm_page_flag_clear(m, PG_ZERO);
m->valid = VM_PAGE_BITS_ALL;
+ vm_page_unmanage(m);
vm_page_unlock_queues();
}
VM_OBJECT_UNLOCK(kmem_object);
OpenPOWER on IntegriCloud