Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 28 May 2009 07:26:36 +0000 (UTC)
From:      Alan Cox <alc@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r192968 - head/sys/vm
Message-ID:  <200905280726.n4S7QaWA027042@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
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"))



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200905280726.n4S7QaWA027042>