mirror of
https://github.com/freebsd/freebsd-src
synced 2024-09-06 17:18:32 +00:00
Make ccd compile again after the Lite2 merge.
VOP_UNLOCK was being called with the wrong number of arguments.
This commit is contained in:
parent
408bc30d8c
commit
06bcc9e510
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=22538
|
@ -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);
|
||||
}
|
||||
|
|
|
@ -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);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue