cvs commit: src/sys/sys vnode.h src/sys/kern vfs_subr.c

Dag-Erling Smorgrav des at FreeBSD.org
Sat Mar 31 23:57:18 UTC 2007


des         2007-03-31 23:57:17 UTC

  FreeBSD src repository

  Modified files:
    sys/sys              vnode.h 
    sys/kern             vfs_subr.c 
  Log:
  Make vdropl() public; zfs needs it.  There is also plenty of existing
  file system code (mostly *_reclaim()) which look like this:
  
      VOP_LOCK(vp);
      /* examine vp */
      VOP_UNLOCK(vp);
      vdrop(vp);
  
  This can now be rewritten to:
  
      VOP_LOCK(vp);
      /* examine vp */
      vdropl(vp); /* will unlock vp */
  
  MFC after:      1 week
  
  Revision  Changes    Path
  1.695     +1 -2      src/sys/kern/vfs_subr.c
  1.323     +1 -0      src/sys/sys/vnode.h


More information about the cvs-src mailing list