Don't try to be cute and save a call/return by implementing a degenerate

vrele() inline.
This commit is contained in:
Poul-Henning Kamp 2002-10-24 17:55:49 +00:00
parent f6a807d6fb
commit 1f59664b68

View File

@ -582,13 +582,9 @@ retry:
/*
* Dereference the reference we just created. This assumes
* that the object is associated with the vp.
*
* We don't need to vrele because the caller must hold a ref.
*/
object->ref_count--;
VI_LOCK(vp);
vp->v_usecount--;
VI_UNLOCK(vp);
vrele(vp);
} else {
if (object->flags & OBJ_DEAD) {
VOP_UNLOCK(vp, 0, td);