summaryrefslogtreecommitdiffstats
path: root/sys/kern/vfs_subr.c
diff options
context:
space:
mode:
authoremaste <emaste@FreeBSD.org>2010-09-01 13:47:11 +0000
committeremaste <emaste@FreeBSD.org>2010-09-01 13:47:11 +0000
commit5216dea167c38680c62c1f24a81f70232eafadb7 (patch)
tree9962fdda4723dd9fcd66a7c17d4fceed9332f4a8 /sys/kern/vfs_subr.c
parentf21ffb282df7bc55b737d9a09197457c20b58bf4 (diff)
downloadFreeBSD-src-5216dea167c38680c62c1f24a81f70232eafadb7.zip
FreeBSD-src-5216dea167c38680c62c1f24a81f70232eafadb7.tar.gz
As long as we are going to panic anyway, there's no need to hide additional
information behind DIAGNOSTIC.
Diffstat (limited to 'sys/kern/vfs_subr.c')
-rw-r--r--sys/kern/vfs_subr.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/sys/kern/vfs_subr.c b/sys/kern/vfs_subr.c
index 783cbee..d770b98 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);
OpenPOWER on IntegriCloud