diff options
author | kstailey <kstailey@cvs.openbsd.org> | 1996-12-22 16:05:25 +0000 |
---|---|---|
committer | kstailey <kstailey@cvs.openbsd.org> | 1996-12-22 16:05:25 +0000 |
commit | 02f27d11f14806b521a522718cb0b2a2567a3714 (patch) | |
tree | 50c7165104d64f15c418ebb44b08bc3ce286bf69 /sys/kern/spec_vnops.c | |
parent | 8d20cedbeb449777da66cfcecbdc45fa3dcb933e (diff) |
make spec_advlock() perform indirect call to lf_advlock()
Diffstat (limited to 'sys/kern/spec_vnops.c')
-rw-r--r-- | sys/kern/spec_vnops.c | 29 |
1 files changed, 15 insertions, 14 deletions
diff --git a/sys/kern/spec_vnops.c b/sys/kern/spec_vnops.c index e12d69ef68e..35d3d301038 100644 --- a/sys/kern/spec_vnops.c +++ b/sys/kern/spec_vnops.c @@ -1,4 +1,4 @@ -/* $OpenBSD: spec_vnops.c,v 1.7 1996/12/05 16:25:08 kstailey Exp $ */ +/* $OpenBSD: spec_vnops.c,v 1.8 1996/12/22 16:05:24 kstailey Exp $ */ /* $NetBSD: spec_vnops.c,v 1.29 1996/04/22 01:42:38 christos Exp $ */ /* @@ -707,19 +707,20 @@ int spec_advlock(v) void *v; { -#ifdef FFS - extern int ufs_advlock __P((void *v)); - - return (ufs_advlock(v)); -#else -#ifdef NFSCLIENT - extern int nfs_advlock __P((void *v)); - - return (nfs_advlock(v)); -#else - return (EOPNOTSUPP); -#endif /* NFSCLIENT */ -#endif /* FFS */ + struct vop_advlock_args /* { + struct vnodeop_desc *a_desc; + struct vnode *a_vp; + caddr_t a_id; + int a_op; + struct flock *a_fl; + int a_flags; + } */ *ap = v; + + /* 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)); } /* |