From ab87e2fb838227d04428125fc9c2aafa042d1312 Mon Sep 17 00:00:00 2001 From: Alan Cox Date: Sun, 5 Oct 2003 00:12:16 +0000 Subject: [PATCH] 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. --- sys/amd64/amd64/pmap.c | 2 -- sys/i386/i386/pmap.c | 2 -- 2 files changed, 4 deletions(-) diff --git a/sys/amd64/amd64/pmap.c b/sys/amd64/amd64/pmap.c index 2e70b52d812..7c9c6ba3210 100644 --- a/sys/amd64/amd64/pmap.c +++ b/sys/amd64/amd64/pmap.c @@ -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(); diff --git a/sys/i386/i386/pmap.c b/sys/i386/i386/pmap.c index 7821d52e2a7..7a500034713 100644 --- a/sys/i386/i386/pmap.c +++ b/sys/i386/i386/pmap.c @@ -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();