Simplify vn_lock(), VOP_LOCK(), and VOP_UNLOCK() by removing the thread_t
[dragonfly.git] / sys / kern / vfs_cache.c
index a415562..45a70b2 100644 (file)
@@ -67,7 +67,7 @@
  *
  *     @(#)vfs_cache.c 8.5 (Berkeley) 3/22/95
  * $FreeBSD: src/sys/kern/vfs_cache.c,v 1.42.2.6 2001/10/05 20:07:03 dillon Exp $
- * $DragonFly: src/sys/kern/vfs_cache.c,v 1.64 2006/04/25 22:11:28 dillon Exp $
+ * $DragonFly: src/sys/kern/vfs_cache.c,v 1.65 2006/05/05 21:15:09 dillon Exp $
  */
 
 #include <sys/param.h>
@@ -1066,7 +1066,7 @@ force:
                        printf("lookupdotdot failed %d dvp %p\n", error, dvp);
                        break;
                }
-               VOP_UNLOCK(pvp, 0, curthread);
+               VOP_UNLOCK(pvp, 0);
 
                /*
                 * Reuse makeit as a recursion depth counter.
@@ -1128,7 +1128,7 @@ cache_fromdvp_try(struct vnode *dvp, struct ucred *cred,
                        vrele(dvp);
                        return (error);
                }
-               VOP_UNLOCK(pvp, 0, curthread);
+               VOP_UNLOCK(pvp, 0);
                if ((ncp = TAILQ_FIRST(&pvp->v_namecache)) != NULL) {
                        cache_hold(ncp);
                        vrele(pvp);
@@ -1258,7 +1258,7 @@ again:
                                }
                                nlc.nlc_nameptr = den->d_name;
                                nlc.nlc_namelen = den->d_namlen;
-                               VOP_UNLOCK(pvp, 0, curthread);
+                               VOP_UNLOCK(pvp, 0);
                                rncp = cache_nlookup(ncp, &nlc);
                                KKASSERT(rncp != NULL);
                                break;