It is not necessary to hold vn_start_write/vn_finished_write around VOP_REVOKE.

This commit is contained in:
Poul-Henning Kamp 2004-11-15 21:27:06 +00:00
parent 718fe8e2bf
commit 136211e58e
2 changed files with 0 additions and 6 deletions

View File

@ -3715,11 +3715,8 @@ revoke(td, uap)
if (error)
goto out;
}
if ((error = vn_start_write(vp, &mp, V_WAIT | PCATCH)) != 0)
goto out;
if (vcount(vp) > 1)
VOP_REVOKE(vp, REVOKEALL);
vn_finished_write(mp);
out:
vrele(vp);
return (error);

View File

@ -3715,11 +3715,8 @@ revoke(td, uap)
if (error)
goto out;
}
if ((error = vn_start_write(vp, &mp, V_WAIT | PCATCH)) != 0)
goto out;
if (vcount(vp) > 1)
VOP_REVOKE(vp, REVOKEALL);
vn_finished_write(mp);
out:
vrele(vp);
return (error);