VFS_ABORTOP hasn't existed since 1999/12/15.

This commit is contained in:
Dima Dorfman 2001-09-03 16:56:21 +00:00
parent 514ceecd1b
commit 20e967f772
3 changed files with 0 additions and 8 deletions

View File

@ -75,12 +75,10 @@ vop_link(struct vnode *dvp, struct vnode *vp, struct componentname *cnp)
int error = 0;
if (vp->v_mount != dvp->v_mount) {
VOP_ABORTOP(dvp, cnp);
error = EXDEV;
goto out2;
}
if (vp != dvp && (error = VOP_LOCK(vp))) {
VOP_ABORTOP(dvp, cnp);
goto out2;
}
@ -89,13 +87,11 @@ vop_link(struct vnode *dvp, struct vnode *vp, struct componentname *cnp)
*/
if (vp would have too many links) {
VOP_ABORTOP(dvp, cnp);
error = EMLINK;
goto out1;
}
if (vp is immutable) {
VOP_ABORTOP(dvp, cnp);
error = EPERM;
goto out1;
}

View File

@ -430,7 +430,6 @@ or
operation would be successful
.El
.Sh SEE ALSO
.Xr VOP_ABORTOP 9 ,
.Xr VOP_ACCESS 9 ,
.Xr VOP_CREATE 9 ,
.Xr VOP_MKDIR 9 ,

View File

@ -85,14 +85,12 @@ vop_rename(struct vnode *fdvp, struct vnode *fvp, struct componentname *fcnp,
if (fvp->v_mount != tdvp->v_mount) {
error = EXDEV;
abortit:
VOP_ABORTOP(tdvp, tcnp);
if (tdvp == tvp)
vrele(tdvp);
else
vput(tdvp);
if (tvp)
vput(tvp);
VOP_ABORTOP(fdvp, fcnp);
vrele(fdvp);
vrele(fvp);
return error;
@ -115,7 +113,6 @@ vop_rename(struct vnode *fdvp, struct vnode *fvp, struct componentname *fcnp,
/*
* Release destination.
*/
VOP_ABORTOP(tdvp, tcnp);
vput(tdvp);
vput(tvp);