svn commit: r192968 - head/sys/vm
Alan Cox
alc at FreeBSD.org
Thu May 28 07:26:36 UTC 2009
Author: alc
Date: Thu May 28 07:26:36 2009
New Revision: 192968
URL: http://svn.freebsd.org/changeset/base/192968
Log:
Change vm_object_page_remove() such that it clears the page's dirty bits
when it invalidates the page.
Suggested by: tegge
Modified:
head/sys/vm/vm_object.c
Modified: head/sys/vm/vm_object.c
==============================================================================
--- head/sys/vm/vm_object.c Thu May 28 07:22:11 2009 (r192967)
+++ head/sys/vm/vm_object.c Thu May 28 07:26:36 2009 (r192968)
@@ -1902,8 +1902,10 @@ again:
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"))
More information about the svn-src-all
mailing list