mirror of
https://git.FreeBSD.org/src.git
synced 2024-12-03 09:00:21 +00:00
Don't try to be cute and save a call/return by implementing a degenerate
vrele() inline.
This commit is contained in:
parent
f6a807d6fb
commit
1f59664b68
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=105884
@ -582,13 +582,9 @@ vop_stdcreatevobject(ap)
|
||||
/*
|
||||
* 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);
|
||||
|
Loading…
Reference in New Issue
Block a user