From owner-cvs-all Sat Jul 6 1:59:59 2002 Delivered-To: cvs-all@freebsd.org Received: from mx1.FreeBSD.org (mx1.FreeBSD.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 24C4F37B400; Sat, 6 Jul 2002 01:59:54 -0700 (PDT) Received: from freefall.freebsd.org (freefall.FreeBSD.org [216.136.204.21]) by mx1.FreeBSD.org (Postfix) with ESMTP id AAE4343E3B; Sat, 6 Jul 2002 01:59:53 -0700 (PDT) (envelope-from jeff@FreeBSD.org) Received: from freefall.freebsd.org (jeff@localhost [127.0.0.1]) by freefall.freebsd.org (8.12.4/8.12.4) with ESMTP id g668xrJU018118; Sat, 6 Jul 2002 01:59:53 -0700 (PDT) (envelope-from jeff@freefall.freebsd.org) Received: (from jeff@localhost) by freefall.freebsd.org (8.12.4/8.12.4/Submit) id g668xr2R018117; Sat, 6 Jul 2002 01:59:53 -0700 (PDT) Message-Id: <200207060859.g668xr2R018117@freefall.freebsd.org> From: Jeff Roberson Date: Sat, 6 Jul 2002 01:59:53 -0700 (PDT) To: cvs-committers@FreeBSD.org, cvs-all@FreeBSD.org Subject: cvs commit: src/sys/sys buf.h src/sys/kern vfs_bio.c vfs_subr.c X-FreeBSD-CVS-Branch: HEAD Sender: owner-cvs-all@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG jeff 2002/07/06 01:59:53 PDT Modified files: sys/sys buf.h sys/kern vfs_bio.c vfs_subr.c Log: Fixup uses of GETVOBJECT. - Cache a pointer to the vnode's object in the buf. - Hold a reference to that object in addition to the vnode's reference just to be consistent. - Cleanup code that got the object indirectly through the vp and VOP calls. This fixes at least one case where we were calling GETVOBJECT without a lock. It also avoids an expensive layered call at the cost of another pointer in struct buf. Revision Changes Path 1.315 +10 -15 src/sys/kern/vfs_bio.c 1.372 +4 -0 src/sys/kern/vfs_subr.c 1.135 +3 -0 src/sys/sys/buf.h To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe cvs-all" in the body of the message