cvs commit: src/sys/kern vfs_lookup.c

Jeff Roberson jeff at FreeBSD.org
Mon Mar 28 01:24:51 PST 2005


jeff        2005-03-28 09:24:50 UTC

  FreeBSD src repository

  Modified files:
    sys/kern             vfs_lookup.c 
  Log:
   - Get rid of PDIRUNLOCK, instead, we fixup the lock state immediately after
     calling VOP_LOOKUP().  Rather than having each filesystem check the
     LOCKPARENT flag, we simply check it once here and unlock as required.
     The only unusual case is ISDOTDOT, where we require an unlocked vnode
     on return.  Relocking this vnode with the child locked is allowed since
     the child is actually its parent.
   - Add a few asserts for some unusual conditions that I do not believe can
     happen.  These will later go away and turn into implementations for these
     conditions.
  
  Sponsored by:   Isilon Systems, Inc.
  
  Revision  Changes    Path
  1.73      +51 -13    src/sys/kern/vfs_lookup.c


More information about the cvs-src mailing list