diff options
author | dyson <dyson@FreeBSD.org> | 1996-03-09 06:48:26 +0000 |
---|---|---|
committer | dyson <dyson@FreeBSD.org> | 1996-03-09 06:48:26 +0000 |
commit | ffcf7ec799c7455083ae5f3d466c89115263eada (patch) | |
tree | 6b1de2d8c9da50d469a08331304f9e42fce6a60c /sys/vm/vm_fault.c | |
parent | 40717c5148f2b885bad4179528990929f1d96805 (diff) | |
download | FreeBSD-src-ffcf7ec799c7455083ae5f3d466c89115263eada.zip FreeBSD-src-ffcf7ec799c7455083ae5f3d466c89115263eada.tar.gz |
Set the page valid bits in fewer places, as opposed to being scattered
in various places.
Diffstat (limited to 'sys/vm/vm_fault.c')
-rw-r--r-- | sys/vm/vm_fault.c | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/sys/vm/vm_fault.c b/sys/vm/vm_fault.c index 5c9c94f..ca39157 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 |