o Request a wired page from vm_page_grab() in _pmap_allocpte().

This commit is contained in:
Alan Cox 2002-08-04 04:55:31 +00:00
parent 526b145c23
commit ea5e5b13f8
2 changed files with 2 additions and 10 deletions

View File

@ -1317,15 +1317,11 @@ _pmap_allocpte(pmap, ptepindex)
* Find or fabricate a new pagetable page
*/
m = vm_page_grab(pmap->pm_pteobj, ptepindex,
VM_ALLOC_ZERO | VM_ALLOC_RETRY);
VM_ALLOC_WIRED | VM_ALLOC_ZERO | VM_ALLOC_RETRY);
KASSERT(m->queue == PQ_NONE,
("_pmap_allocpte: %p->queue != PQ_NONE", m));
if (m->wire_count == 0)
cnt.v_wire_count++;
m->wire_count++;
/*
* Increment the hold count for the page table page
* (denoting a new mapping.)

View File

@ -1317,15 +1317,11 @@ _pmap_allocpte(pmap, ptepindex)
* Find or fabricate a new pagetable page
*/
m = vm_page_grab(pmap->pm_pteobj, ptepindex,
VM_ALLOC_ZERO | VM_ALLOC_RETRY);
VM_ALLOC_WIRED | VM_ALLOC_ZERO | VM_ALLOC_RETRY);
KASSERT(m->queue == PQ_NONE,
("_pmap_allocpte: %p->queue != PQ_NONE", m));
if (m->wire_count == 0)
cnt.v_wire_count++;
m->wire_count++;
/*
* Increment the hold count for the page table page
* (denoting a new mapping.)