From owner-svn-src-head@FreeBSD.ORG Sun Apr 19 07:18:08 2009 Return-Path: Delivered-To: svn-src-head@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id B564A106566B; Sun, 19 Apr 2009 07:18:08 +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 A45DE8FC14; Sun, 19 Apr 2009 07:18:08 +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 n3J7I8Ci002249; Sun, 19 Apr 2009 07:18:08 GMT (envelope-from alc@svn.freebsd.org) Received: (from alc@localhost) by svn.freebsd.org (8.14.3/8.14.3/Submit) id n3J7I8W4002248; Sun, 19 Apr 2009 07:18:08 GMT (envelope-from alc@svn.freebsd.org) Message-Id: <200904190718.n3J7I8W4002248@svn.freebsd.org> From: Alan Cox Date: Sun, 19 Apr 2009 07:18:08 +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: r191263 - head/sys/vm X-BeenThere: svn-src-head@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: SVN commit messages for the src tree for head/-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 19 Apr 2009 07:18:09 -0000 Author: alc Date: Sun Apr 19 07:18:08 2009 New Revision: 191263 URL: http://svn.freebsd.org/changeset/base/191263 Log: 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. Modified: head/sys/vm/vm_pageout.c Modified: head/sys/vm/vm_pageout.c ============================================================================== --- head/sys/vm/vm_pageout.c Sun Apr 19 06:59:12 2009 (r191262) +++ head/sys/vm/vm_pageout.c Sun Apr 19 07:18:08 2009 (r191263) @@ -462,7 +462,6 @@ vm_pageout_flush(vm_page_t *mc, int coun * essentially lose the changes by pretending it * worked. */ - pmap_clear_modify(mt); vm_page_undirty(mt); break; case VM_PAGER_ERROR: