From owner-svn-src-all@FreeBSD.ORG Thu May 28 07:26:36 2009 Return-Path: Delivered-To: svn-src-all@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 56010106564A; Thu, 28 May 2009 07:26:36 +0000 (UTC) (envelope-from alc@FreeBSD.org) Received: from svn.freebsd.org (svn.freebsd.org [IPv6:2001:4f8:fff6::2c]) by mx1.freebsd.org (Postfix) with ESMTP id 4525E8FC0A; Thu, 28 May 2009 07:26:36 +0000 (UTC) (envelope-from alc@FreeBSD.org) Received: from svn.freebsd.org (localhost [127.0.0.1]) by svn.freebsd.org (8.14.3/8.14.3) with ESMTP id n4S7QawX027043; Thu, 28 May 2009 07:26:36 GMT (envelope-from alc@svn.freebsd.org) Received: (from alc@localhost) by svn.freebsd.org (8.14.3/8.14.3/Submit) id n4S7QaWA027042; Thu, 28 May 2009 07:26:36 GMT (envelope-from alc@svn.freebsd.org) Message-Id: <200905280726.n4S7QaWA027042@svn.freebsd.org> From: Alan Cox Date: Thu, 28 May 2009 07:26:36 +0000 (UTC) To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org X-SVN-Group: head MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Cc: Subject: svn commit: r192968 - head/sys/vm X-BeenThere: svn-src-all@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "SVN commit messages for the entire src tree \(except for " user" and " projects" \)" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 28 May 2009 07:26:36 -0000 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"))