From 06bcc9e51029290b2da533f935d8759206f9893d Mon Sep 17 00:00:00 2001 From: Mike Pritchard Date: Mon, 10 Feb 1997 16:24:33 +0000 Subject: Make ccd compile again after the Lite2 merge. VOP_UNLOCK was being called with the wrong number of arguments. --- sys/dev/ccd/ccd.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'sys/dev') diff --git a/sys/dev/ccd/ccd.c b/sys/dev/ccd/ccd.c index 1a831942a6258..782cb30921889 100644 --- a/sys/dev/ccd/ccd.c +++ b/sys/dev/ccd/ccd.c @@ -1380,7 +1380,7 @@ ccdlookup(path, p, vpp) vp = nd.ni_vp; if (vp->v_usecount > 1) { - VOP_UNLOCK(vp); + VOP_UNLOCK(vp, 0, p); (void)vn_close(vp, FREAD|FWRITE, p->p_ucred, p); return (EBUSY); } @@ -1390,14 +1390,14 @@ ccdlookup(path, p, vpp) if (ccddebug & CCDB_FOLLOW|CCDB_INIT) printf("ccdlookup: getattr error = %d\n", error); #endif - VOP_UNLOCK(vp); + VOP_UNLOCK(vp, 0, p); (void)vn_close(vp, FREAD|FWRITE, p->p_ucred, p); return (error); } /* XXX: eventually we should handle VREG, too. */ if (va.va_type != VBLK) { - VOP_UNLOCK(vp); + VOP_UNLOCK(vp, 0, p); (void)vn_close(vp, FREAD|FWRITE, p->p_ucred, p); return (ENOTBLK); } @@ -1407,7 +1407,7 @@ ccdlookup(path, p, vpp) vprint("ccdlookup: vnode info", vp); #endif - VOP_UNLOCK(vp); + VOP_UNLOCK(vp, 0, p); *vpp = vp; return (0); } -- cgit v1.3