From owner-cvs-src-old@FreeBSD.ORG Tue Jan 20 11:29:03 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 C7583106568A for ; Tue, 20 Jan 2009 11:29:03 +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 B3FA98FC0C for ; Tue, 20 Jan 2009 11:29:03 +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 n0KBT3jS058317 for ; Tue, 20 Jan 2009 11:29:03 GMT (envelope-from kib@repoman.freebsd.org) Received: (from svn2cvs@localhost) by repoman.freebsd.org (8.14.3/8.14.3/Submit) id n0KBT349058316 for cvs-src-old@freebsd.org; Tue, 20 Jan 2009 11:29:03 GMT (envelope-from kib@repoman.freebsd.org) Message-Id: <200901201129.n0KBT349058316@repoman.freebsd.org> X-Authentication-Warning: repoman.freebsd.org: svn2cvs set sender to kib@repoman.freebsd.org using -f From: Konstantin Belousov Date: Tue, 20 Jan 2009 11:27:45 +0000 (UTC) To: cvs-src-old@freebsd.org X-FreeBSD-CVS-Branch: HEAD 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, 20 Jan 2009 11:29:04 -0000 kib 2009-01-20 11:27:45 UTC FreeBSD src repository Modified files: sys/kern vfs_subr.c sys/ufs/ffs ffs_inode.c Log: SVN rev 187467 on 2009-01-20 11:27:45Z by kib FFS puts the extended attributes blocks at the negative blocks for the vnode, from -1 down. When vinvalbuf(vp, V_ALT) is done for the vnode, it incorrectly does vm_object_page_remove(0, 0), removing all pages from the underlying vm object, not only the pages that back the extended attributes data. 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. Reported by: csjp Reviewed by: ups MFC after: 3 weeks Revision Changes Path 1.751 +1 -1 src/sys/kern/vfs_subr.c 1.114 +9 -0 src/sys/ufs/ffs/ffs_inode.c