Calling pmap_clear_modify() after calling pmap_remove_write() is pointless.

The latter function already clears the modified status from each of the
page's mappings.
This commit is contained in:
Alan Cox 2009-04-19 07:18:08 +00:00
parent 4f6b15547b
commit f4b0c119c0

View File

@ -462,7 +462,6 @@ vm_pageout_flush(vm_page_t *mc, int count, int flags)
* essentially lose the changes by pretending it
* worked.
*/
pmap_clear_modify(mt);
vm_page_undirty(mt);
break;
case VM_PAGER_ERROR: