diff --git a/sys/vm/vm_page.c b/sys/vm/vm_page.c index e62e0d15b67a..7a03d4749c8d 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 */ } /*