summaryrefslogtreecommitdiffstats
path: root/sys/miscfs/devfs/devfs_tree.c
diff options
context:
space:
mode:
authormpp <mpp@FreeBSD.org>1997-02-12 16:19:11 +0000
committermpp <mpp@FreeBSD.org>1997-02-12 16:19:11 +0000
commit51b234aac4b3959d6b3890d80927248c1d750e0b (patch)
tree04bc0635d54cfae5b4e2ae24a6bab666e2dcec73 /sys/miscfs/devfs/devfs_tree.c
parentbe66779edfcf909dbce47f35a1792639f2ce8c61 (diff)
downloadFreeBSD-src-51b234aac4b3959d6b3890d80927248c1d750e0b.zip
FreeBSD-src-51b234aac4b3959d6b3890d80927248c1d750e0b.tar.gz
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
Diffstat (limited to 'sys/miscfs/devfs/devfs_tree.c')
-rw-r--r--sys/miscfs/devfs/devfs_tree.c8
1 files changed, 5 insertions, 3 deletions
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 <sys/conf.h>
#include <sys/stat.h>
#include <sys/mount.h>
+#include <sys/proc.h>
#include <sys/vnode.h>
#include <sys/malloc.h>
#include <sys/dir.h> /* 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;
}
OpenPOWER on IntegriCloud