Move page fixups (pmap_clear_modify, etc) that happen after paging input
completes out of vm_fault and into the pagers. This get rid of some redundancy and improves the architecture. Reviewed by: John Dyson <dyson>
This commit is contained in:
parent
77114ad9e7
commit
81c32c3e02
@ -39,7 +39,7 @@
|
||||
* from: Utah $Hdr: swap_pager.c 1.4 91/04/30$
|
||||
*
|
||||
* @(#)swap_pager.c 8.9 (Berkeley) 3/21/94
|
||||
* $Id: swap_pager.c,v 1.46 1995/09/11 00:47:17 dyson Exp $
|
||||
* $Id: swap_pager.c,v 1.47 1995/09/24 04:40:19 davidg Exp $
|
||||
*/
|
||||
|
||||
/*
|
||||
@ -1084,6 +1084,11 @@ swap_pager_getpages(object, m, count, reqpage)
|
||||
swap_pager_ridpages(m, count, reqpage);
|
||||
}
|
||||
}
|
||||
if (rv == VM_PAGER_OK) {
|
||||
pmap_clear_modify(VM_PAGE_TO_PHYS(m[reqpage]));
|
||||
m[reqpage]->valid = VM_PAGE_BITS_ALL;
|
||||
m[reqpage]->dirty = 0;
|
||||
}
|
||||
return (rv);
|
||||
}
|
||||
|
||||
|
@ -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.33 1995/10/07 19:02:53 davidg Exp $
|
||||
* $Id: vm_fault.c,v 1.34 1995/10/23 03:49:28 dyson Exp $
|
||||
*/
|
||||
|
||||
/*
|
||||
@ -357,9 +357,6 @@ RetryFault:;
|
||||
goto RetryFault;
|
||||
}
|
||||
|
||||
pmap_clear_modify(VM_PAGE_TO_PHYS(m));
|
||||
m->valid = VM_PAGE_BITS_ALL;
|
||||
m->flags |= PG_BUSY;
|
||||
hardfault++;
|
||||
break;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user