Change vm_object_page_remove() such that it clears the page's dirty bits

when it invalidates the page.

Suggested by:	tegge
This commit is contained in:
Alan Cox 2009-05-28 07:26:36 +00:00
parent 60a8b6022d
commit a28042d1e3
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=192968

View File

@ -1902,8 +1902,10 @@ vm_object_page_remove(vm_object_t object, vm_pindex_t start, vm_pindex_t end,
pmap_remove_all(p);
/* Account for removal of managed, wired mappings. */
p->wire_count -= wirings;
if (!clean_only)
if (!clean_only) {
p->valid = 0;
vm_page_undirty(p);
}
continue;
}
if (vm_page_sleep_if_busy(p, TRUE, "vmopar"))