From 51b234aac4b3959d6b3890d80927248c1d750e0b Mon Sep 17 00:00:00 2001 From: mpp Date: Wed, 12 Feb 1997 16:19:11 +0000 Subject: Make this compile again after the Lite2 merge. Call vget/VOP_UNLOCK with the correct number of arguments. Call vn_lock where appropriate. vfs_goneall is now replaced by VOP_REVOKE. Submitted by: bde --- sys/miscfs/devfs/devfs_tree.c | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) (limited to 'sys/miscfs/devfs/devfs_tree.c') diff --git a/sys/miscfs/devfs/devfs_tree.c b/sys/miscfs/devfs/devfs_tree.c index 56b338e..f9386f8 100644 --- a/sys/miscfs/devfs/devfs_tree.c +++ b/sys/miscfs/devfs/devfs_tree.c @@ -2,7 +2,7 @@ /* * Written by Julian Elischer (julian@DIALix.oz.au) * - * $Header: /home/ncvs/src/sys/miscfs/devfs/devfs_tree.c,v 1.32 1996/10/28 11:36:02 phk Exp $ + * $Header: /home/ncvs/src/sys/miscfs/devfs/devfs_tree.c,v 1.33 1996/11/21 07:18:57 julian Exp $ */ #include "opt_devfs.h" @@ -15,6 +15,7 @@ #include #include #include +#include #include #include #include /* defines dirent structure */ @@ -892,6 +893,7 @@ devfs_dntovn(dn_p dnp, struct vnode **vn_pp) { struct vnode *vn_p, *nvp; int error = 0; + struct proc *p = curproc; /* XXX */ vn_p = dnp->vn; DBPRINT(("dntovn ")); @@ -925,7 +927,7 @@ DBPRINT(("dntovn ")); } if(vn_p->v_type != VNON) { - vget(vn_p,1); /*XXX*/ + vget(vn_p, LK_EXCLUSIVE, p); *vn_pp = vn_p; return(0); } @@ -990,7 +992,7 @@ DBPRINT(("(New vnode)")); { error = EINVAL; } - VOP_LOCK(vn_p); + vn_lock(vn_p, LK_EXCLUSIVE | LK_RETRY, p); } return error; } -- cgit v1.1