==== //depot/user/kris/net/ufs/ufs/ufs_lookup.c#3 - /zoo/kris/net/ufs/ufs/ufs_lookup.c ==== @@ -154,6 +154,9 @@ int flags = cnp->cn_flags; int nameiop = cnp->cn_nameiop; ino_t saved_ino; +#ifndef NO_UFS_LOOKUP_SHARED + struct thread *td = cnp->cn_thread; +#endif bp = NULL; slotoffset = -1; @@ -170,7 +173,7 @@ if ((vdp->v_mount->mnt_kern_flag & MNTK_LOOKUP_SHARED) && (VOP_ISLOCKED(vdp, td) != LK_EXCLUSIVE)) { /* Upgrade to exclusive lock, this might block */ - VOP_LOCK(vdp, LK_UPGRADE, td); + VOP_LOCK(vdp, LK_UPGRADE); } #endif /*