From e5ddf1158184fa58de4a89fb6c75ec9fe79510b1 Mon Sep 17 00:00:00 2001 From: Ed Maste Date: Wed, 1 Sep 2010 13:47:11 +0000 Subject: [PATCH] As long as we are going to panic anyway, there's no need to hide additional information behind DIAGNOSTIC. --- sys/kern/vfs_subr.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/sys/kern/vfs_subr.c b/sys/kern/vfs_subr.c index 783cbee1901..d770b988ef1 100644 --- a/sys/kern/vfs_subr.c +++ b/sys/kern/vfs_subr.c @@ -2203,9 +2203,7 @@ vputx(struct vnode *vp, int func) } if (vp->v_usecount != 1) { -#ifdef DIAGNOSTIC vprint("vputx: negative ref count", vp); -#endif panic("vputx: negative ref cnt"); } CTR2(KTR_VFS, "%s: return vnode %p to the freelist", __func__, vp);