Make ccd compile again after the Lite2 merge.

VOP_UNLOCK was being called with the wrong number of arguments.
This commit is contained in:
Mike Pritchard 1997-02-10 16:24:33 +00:00
parent 408bc30d8c
commit 06bcc9e510
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=22538
2 changed files with 8 additions and 8 deletions

View file

@ -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);
}

View file

@ -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);
}