From 1f59664b68c94cc275c71812042342d455fa1319 Mon Sep 17 00:00:00 2001 From: Poul-Henning Kamp Date: Thu, 24 Oct 2002 17:55:49 +0000 Subject: [PATCH] Don't try to be cute and save a call/return by implementing a degenerate vrele() inline. --- sys/kern/vfs_default.c | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/sys/kern/vfs_default.c b/sys/kern/vfs_default.c index 69f8184d9962..83911ec97579 100644 --- a/sys/kern/vfs_default.c +++ b/sys/kern/vfs_default.c @@ -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);