From owner-svn-src-head@FreeBSD.ORG Tue May 12 05:49:02 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 8E60410656B2; Tue, 12 May 2009 05:49:02 +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 62FCE8FC16; Tue, 12 May 2009 05:49:02 +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 n4C5n2KU012611; Tue, 12 May 2009 05:49:02 GMT (envelope-from alc@svn.freebsd.org) Received: (from alc@localhost) by svn.freebsd.org (8.14.3/8.14.3/Submit) id n4C5n2Cj012608; Tue, 12 May 2009 05:49:02 GMT (envelope-from alc@svn.freebsd.org) Message-Id: <200905120549.n4C5n2Cj012608@svn.freebsd.org> From: Alan Cox Date: Tue, 12 May 2009 05:49:02 +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: r192010 - in head/sys: fs/smbfs nfsclient 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: Tue, 12 May 2009 05:49:03 -0000 Author: alc Date: Tue May 12 05:49:02 2009 New Revision: 192010 URL: http://svn.freebsd.org/changeset/base/192010 Log: Eliminate gratuitous clearing of the page's dirty mask. Modified: head/sys/fs/smbfs/smbfs_io.c head/sys/nfsclient/nfs_bio.c head/sys/vm/vnode_pager.c Modified: head/sys/fs/smbfs/smbfs_io.c ============================================================================== --- head/sys/fs/smbfs/smbfs_io.c Tue May 12 03:30:25 2009 (r192009) +++ head/sys/fs/smbfs/smbfs_io.c Tue May 12 05:49:02 2009 (r192010) @@ -517,7 +517,8 @@ smbfs_getpages(ap) * Read operation filled an entire page */ m->valid = VM_PAGE_BITS_ALL; - vm_page_undirty(m); + KASSERT(m->dirty == 0, + ("smbfs_getpages: page %p is dirty", m)); } else if (size > toff) { /* * Read operation filled a partial page. Modified: head/sys/nfsclient/nfs_bio.c ============================================================================== --- head/sys/nfsclient/nfs_bio.c Tue May 12 03:30:25 2009 (r192009) +++ head/sys/nfsclient/nfs_bio.c Tue May 12 05:49:02 2009 (r192010) @@ -209,7 +209,8 @@ nfs_getpages(struct vop_getpages_args *a * Read operation filled an entire page */ m->valid = VM_PAGE_BITS_ALL; - vm_page_undirty(m); + KASSERT(m->dirty == 0, + ("nfs_getpages: page %p is dirty", m)); } else if (size > toff) { /* * Read operation filled a partial page. Modified: head/sys/vm/vnode_pager.c ============================================================================== --- head/sys/vm/vnode_pager.c Tue May 12 03:30:25 2009 (r192009) +++ head/sys/vm/vnode_pager.c Tue May 12 05:49:02 2009 (r192010) @@ -762,7 +762,8 @@ vnode_pager_generic_getpages(vp, m, byte return VM_PAGER_OK; } else if (reqblock == -1) { pmap_zero_page(m[reqpage]); - vm_page_undirty(m[reqpage]); + KASSERT(m[reqpage]->dirty == 0, + ("vnode_pager_generic_getpages: page %p is dirty", m)); m[reqpage]->valid = VM_PAGE_BITS_ALL; vm_page_lock_queues(); for (i = 0; i < count; i++)