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:
David Greenman 1995-11-02 06:42:47 +00:00
parent 054ef37088
commit 23922ccaca
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=12006
2 changed files with 7 additions and 5 deletions

View File

@ -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);
}

View File

@ -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 @@ readrest:
goto RetryFault;
}
pmap_clear_modify(VM_PAGE_TO_PHYS(m));
m->valid = VM_PAGE_BITS_ALL;
m->flags |= PG_BUSY;
hardfault++;
break;
}