From owner-cvs-src-old@FreeBSD.ORG Tue Feb 10 17:44:24 2009 Return-Path: Delivered-To: cvs-src-old@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id CF59A1065676 for ; Tue, 10 Feb 2009 17:44:24 +0000 (UTC) (envelope-from kib@FreeBSD.org) Received: from repoman.freebsd.org (repoman.freebsd.org [IPv6:2001:4f8:fff6::29]) by mx1.freebsd.org (Postfix) with ESMTP id BBD3C8FC19 for ; Tue, 10 Feb 2009 17:44:24 +0000 (UTC) (envelope-from kib@FreeBSD.org) Received: from repoman.freebsd.org (localhost [127.0.0.1]) by repoman.freebsd.org (8.14.3/8.14.3) with ESMTP id n1AHiOnp041081 for ; Tue, 10 Feb 2009 17:44:24 GMT (envelope-from kib@repoman.freebsd.org) Received: (from svn2cvs@localhost) by repoman.freebsd.org (8.14.3/8.14.3/Submit) id n1AHiOLN041080 for cvs-src-old@freebsd.org; Tue, 10 Feb 2009 17:44:24 GMT (envelope-from kib@repoman.freebsd.org) Message-Id: <200902101744.n1AHiOLN041080@repoman.freebsd.org> X-Authentication-Warning: repoman.freebsd.org: svn2cvs set sender to kib@repoman.freebsd.org using -f From: Konstantin Belousov Date: Tue, 10 Feb 2009 17:43:47 +0000 (UTC) To: cvs-src-old@freebsd.org X-FreeBSD-CVS-Branch: RELENG_7 Subject: cvs commit: src/sys/kern vfs_subr.c src/sys/ufs/ffs ffs_inode.c X-BeenThere: cvs-src-old@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: **OBSOLETE** CVS commit messages for the src tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 10 Feb 2009 17:44:25 -0000 kib 2009-02-10 17:43:47 UTC FreeBSD src repository Modified files: (Branch: RELENG_7) sys/kern vfs_subr.c sys/ufs/ffs ffs_inode.c Log: SVN rev 188441 on 2009-02-10 17:43:47Z by kib MFC r187467: Change vinvalbuf() to not remove any pages from the object when V_NORMAL or V_ALT are specified. Instead, the only in-tree caller in ffs_inode.c:ffs_truncate() that specifies V_ALT explicitely removes the corresponding page range. The V_NORMAL caller does vnode_pager_setsize(vp, 0) immediately after the call to vinvalbuf(V_NORMAL) already. MFC r187490: The r187467 should remove all pages for V_NORMAL case too, because indirect block pages are not removed by the mentioned invocation of the vnode_pager_setsize(). Put a common code into the helper function ffs_pages_remove(). Revision Changes Path 1.707.2.11 +1 -1 src/sys/kern/vfs_subr.c 1.108.2.3 +18 -0 src/sys/ufs/ffs/ffs_inode.c