summaryrefslogtreecommitdiff
path: root/sys/kern/spec_vnops.c
diff options
context:
space:
mode:
authorkstailey <kstailey@cvs.openbsd.org>1997-01-04 17:10:06 +0000
committerkstailey <kstailey@cvs.openbsd.org>1997-01-04 17:10:06 +0000
commit55b5d8e6a20935c184f51f8b135799ecdac7bf34 (patch)
treea319fe96bc66f67f8ee7b27fc8dd2c5419f3cbad /sys/kern/spec_vnops.c
parentceefa2d0df0fc62684c9b8e66771771b4e1de1d9 (diff)
spec_advlock() via lf_advlock()
Diffstat (limited to 'sys/kern/spec_vnops.c')
-rw-r--r--sys/kern/spec_vnops.c11
1 files changed, 5 insertions, 6 deletions
diff --git a/sys/kern/spec_vnops.c b/sys/kern/spec_vnops.c
index 35d3d301038..321e910cd1b 100644
--- a/sys/kern/spec_vnops.c
+++ b/sys/kern/spec_vnops.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: spec_vnops.c,v 1.8 1996/12/22 16:05:24 kstailey Exp $ */
+/* $OpenBSD: spec_vnops.c,v 1.9 1997/01/04 17:10:04 kstailey Exp $ */
/* $NetBSD: spec_vnops.c,v 1.29 1996/04/22 01:42:38 christos Exp $ */
/*
@@ -50,6 +50,7 @@
#include <sys/ioctl.h>
#include <sys/file.h>
#include <sys/disklabel.h>
+#include <sys/lockf.h>
#include <miscfs/specfs/specdev.h>
@@ -715,12 +716,10 @@ spec_advlock(v)
struct flock *a_fl;
int a_flags;
} */ *ap = v;
+ register struct vnode *vp = ap->a_vp;
- /* XXX Should call lf_advlock() from here, but no snode. */
- /* Instead call through non-special file on same filesystem. */
-
- return (VCALL(ap->a_vp->v_mount->mnt_vnodelist.lh_first,
- VOFFSET(vop_advlock), ap));
+ return (lf_advlock(&vp->v_speclockf, (off_t)0, ap->a_id,
+ ap->a_op, ap->a_fl, ap->a_flags));
}
/*