From 65bc79b85ffdf69216696a91e0ec7ff2130e0888 Mon Sep 17 00:00:00 2001 From: John Dyson Date: Sat, 9 Mar 1996 06:48:26 +0000 Subject: [PATCH] Set the page valid bits in fewer places, as opposed to being scattered in various places. --- sys/vm/vm_fault.c | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/sys/vm/vm_fault.c b/sys/vm/vm_fault.c index 5c9c94f5f683..ca39157513d1 100644 --- a/sys/vm/vm_fault.c +++ b/sys/vm/vm_fault.c @@ -66,7 +66,7 @@ * any improvements or extensions that they make and grant Carnegie the * rights to redistribute these changes. * - * $Id: vm_fault.c,v 1.40 1996/01/19 03:59:43 dyson Exp $ + * $Id: vm_fault.c,v 1.41 1996/03/02 02:54:18 dyson Exp $ */ /* @@ -439,7 +439,6 @@ readrest: if ((m->flags & PG_ZERO) == 0) vm_page_zero_fill(m); - m->valid = VM_PAGE_BITS_ALL; cnt.v_zfod++; break; } else { @@ -513,7 +512,6 @@ readrest: */ vm_page_rename(m, first_object, first_pindex); first_m = m; - m->valid = VM_PAGE_BITS_ALL; m->dirty = VM_PAGE_BITS_ALL; m = NULL; ++vm_fault_copy_save_1; @@ -522,7 +520,6 @@ readrest: * Oh, well, lets copy it. */ vm_page_copy(m, first_m); - first_m->valid = VM_PAGE_BITS_ALL; } if (lookup_still_valid && @@ -591,7 +588,7 @@ readrest: */ vm_page_rename(m, other_object, other_pindex); m->dirty = VM_PAGE_BITS_ALL; - /* m->valid = VM_PAGE_BITS_ALL; */ + m->valid = VM_PAGE_BITS_ALL; ++vm_fault_copy_save_2; } } @@ -710,6 +707,7 @@ readrest: m->flags |= PG_MAPPED|PG_REFERENCED; m->flags &= ~PG_ZERO; + m->valid = VM_PAGE_BITS_ALL; pmap_enter(map->pmap, vaddr, VM_PAGE_TO_PHYS(m), prot, wired); #if 0