Don't bother setting a page table page's valid field. It is unused and

not setting it is consistent with other uses of VM_ALLOC_NOOBJ pages.
This commit is contained in:
Alan Cox 2003-10-05 00:12:16 +00:00
parent 894fbf9769
commit ab87e2fb83
2 changed files with 0 additions and 4 deletions

View file

@ -1022,7 +1022,6 @@ pmap_pinit(pmap)
VM_WAIT;
vm_page_lock_queues();
vm_page_flag_clear(pml4pg, PG_BUSY);
pml4pg->valid = VM_PAGE_BITS_ALL;
vm_page_unlock_queues();
pmap->pm_pml4 = (pml4_entry_t *)PHYS_TO_DMAP(VM_PAGE_TO_PHYS(pml4pg));
@ -1196,7 +1195,6 @@ _pmap_allocpte(pmap, ptepindex)
}
vm_page_lock_queues();
m->valid = VM_PAGE_BITS_ALL;
vm_page_flag_clear(m, PG_ZERO);
vm_page_wakeup(m);
vm_page_unlock_queues();

View file

@ -1064,7 +1064,6 @@ pmap_pinit(pmap)
else {
vm_page_lock_queues();
vm_page_flag_clear(m, PG_BUSY);
m->valid = VM_PAGE_BITS_ALL;
vm_page_unlock_queues();
ptdpg[i++] = m;
}
@ -1162,7 +1161,6 @@ _pmap_allocpte(pmap, ptepindex)
(pd_entry_t) (ptepa | PG_U | PG_RW | PG_V | PG_A | PG_M);
vm_page_lock_queues();
m->valid = VM_PAGE_BITS_ALL;
vm_page_flag_clear(m, PG_ZERO);
vm_page_wakeup(m);
vm_page_unlock_queues();