Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 6 Jul 2002 01:59:53 -0700 (PDT)
From:      Jeff Roberson <jeff@FreeBSD.org>
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
Message-ID:  <200207060859.g668xr2R018117@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help
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




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200207060859.g668xr2R018117>