diff options
author | Constantine Sapuntzakis <csapuntz@cvs.openbsd.org> | 1997-11-06 17:23:10 +0000 |
---|---|---|
committer | Constantine Sapuntzakis <csapuntz@cvs.openbsd.org> | 1997-11-06 17:23:10 +0000 |
commit | 42f58dcdba575ac549eca8f2ab34d8f4e7efa3e4 (patch) | |
tree | b0ee8a8e14118d164d510c73af4e40dc82eec42b /sys/adosfs/adutil.c | |
parent | 6098d434ef0f60c9c49c0c16244c45b9825d65a9 (diff) |
More fixes for adosfs so it compiles with VFS Lite 2
Diffstat (limited to 'sys/adosfs/adutil.c')
-rw-r--r-- | sys/adosfs/adutil.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/sys/adosfs/adutil.c b/sys/adosfs/adutil.c index a1dbd91df24..01caadd3dd7 100644 --- a/sys/adosfs/adutil.c +++ b/sys/adosfs/adutil.c @@ -1,4 +1,4 @@ -/* $OpenBSD: adutil.c,v 1.8 1997/01/20 15:49:52 niklas Exp $ */ +/* $OpenBSD: adutil.c,v 1.9 1997/11/06 17:23:09 csapuntz Exp $ */ /* $NetBSD: adutil.c,v 1.15 1996/10/13 02:52:07 christos Exp $ */ /* @@ -56,6 +56,7 @@ adosfs_ahashget(mp, an) { struct anodechain *hp; struct anode *ap; + struct proc *p = curproc; hp = &VFSTOADOSFS(mp)->anodetab[AHASH(an)]; @@ -68,7 +69,7 @@ start_over: tsleep(ap, PINOD, "ahashget", 0); goto start_over; } - if (vget(ATOV(ap), 1)) + if (vget(ATOV(ap), LK_EXCLUSIVE, p)) goto start_over; return (ATOV(ap)); } |