summaryrefslogtreecommitdiffstats
path: root/sys/vm/vm_page.c
diff options
context:
space:
mode:
authoralc <alc@FreeBSD.org>2002-07-19 03:33:04 +0000
committeralc <alc@FreeBSD.org>2002-07-19 03:33:04 +0000
commit083a6fe2b0dce41b375be7f611b37e64ec218129 (patch)
tree993e25c7ddf4527a6a323cb841c5ad49a803cb43 /sys/vm/vm_page.c
parent505a8867742d0d980e284c1813f5264d90a21e35 (diff)
downloadFreeBSD-src-083a6fe2b0dce41b375be7f611b37e64ec218129.zip
FreeBSD-src-083a6fe2b0dce41b375be7f611b37e64ec218129.tar.gz
o Duplicate an odd side-effect of vm_page_wire() in vm_page_allocate()
when VM_ALLOC_WIRED is specified: set the PG_MAPPED bit in flags. o In both vm_page_wire() and vm_page_allocate() add a comment saying that setting PG_MAPPED does not belong there.
Diffstat (limited to 'sys/vm/vm_page.c')
-rw-r--r--sys/vm/vm_page.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/sys/vm/vm_page.c b/sys/vm/vm_page.c
index e62e0d1..7a03d47 100644
--- a/sys/vm/vm_page.c
+++ b/sys/vm/vm_page.c
@@ -935,6 +935,7 @@ loop:
}
if (req & VM_ALLOC_WIRED) {
cnt.v_wire_count++;
+ m->flags |= PG_MAPPED; /* XXX this does not belong here */
m->wire_count = 1;
} else
m->wire_count = 0;
@@ -1253,7 +1254,7 @@ vm_page_wire(vm_page_t m)
m->wire_count++;
KASSERT(m->wire_count != 0, ("vm_page_wire: wire_count overflow m=%p", m));
splx(s);
- vm_page_flag_set(m, PG_MAPPED);
+ vm_page_flag_set(m, PG_MAPPED); /* XXX this does not belong here */
}
/*
OpenPOWER on IntegriCloud