summaryrefslogtreecommitdiffstats
path: root/sys/vm
diff options
context:
space:
mode:
authoralc <alc@FreeBSD.org>2006-11-13 00:27:02 +0000
committeralc <alc@FreeBSD.org>2006-11-13 00:27:02 +0000
commitce5848ab992774c7aab7cbd924721003960b0e16 (patch)
tree0cff6cf62fd35f5e51684931ebae5d222b9a681d /sys/vm
parent925ac6f1b9b066042073d7a1f49a8a722f1e37fe (diff)
downloadFreeBSD-src-ce5848ab992774c7aab7cbd924721003960b0e16.zip
FreeBSD-src-ce5848ab992774c7aab7cbd924721003960b0e16.tar.gz
There is no point in setting PG_REFERENCED on kmem_object pages because
they are "unmanaged", i.e., non-pageable, pages. Remove a stale comment.
Diffstat (limited to 'sys/vm')
-rw-r--r--sys/vm/vm_kern.c7
1 files changed, 1 insertions, 6 deletions
diff --git a/sys/vm/vm_kern.c b/sys/vm/vm_kern.c
index e3a8c12..162f2c7 100644
--- a/sys/vm/vm_kern.c
+++ b/sys/vm/vm_kern.c
@@ -390,9 +390,7 @@ retry:
vm_map_simplify_entry(map, entry);
/*
- * Loop thru pages, entering them in the pmap. (We cannot add them to
- * the wired count without wrapping the vm_page_queue_lock in
- * splimp...)
+ * Loop thru pages, entering them in the pmap.
*/
VM_OBJECT_LOCK(kmem_object);
for (i = 0; i < size; i += PAGE_SIZE) {
@@ -401,9 +399,6 @@ retry:
* Because this is kernel_pmap, this call will not block.
*/
pmap_enter(kernel_pmap, addr + i, m, VM_PROT_ALL, 1);
- vm_page_lock_queues();
- vm_page_flag_set(m, PG_REFERENCED);
- vm_page_unlock_queues();
vm_page_wakeup(m);
}
VM_OBJECT_UNLOCK(kmem_object);
OpenPOWER on IntegriCloud