Author: kib
Date: Sun May 5 06:25:28 2013
New Revision: 250262
URL: http://svnweb.freebsd.org/changeset/base/250262
Log:
MFC r250026:
Convert panic() into KASSERT().
Modified:
stable/9/sys/vm/vnode_pager.c
Directory Properties:
stable/9/sys/ (props changed)
Modified: stable/9/sys/vm/vnode_pager.c
==============================================================================
--- stable/9/sys/vm/vnode_pager.c Sun May 5 06:20:49 2013
(r250261)
+++ stable/9/sys/vm/vnode_pager.c Sun May 5 06:25:28 2013
(r250262)
@@ -213,8 +213,7 @@ retry:
msleep(object, VM_OBJECT_MTX(object), PDROP | PVM, "vadead", 0);
}
- if (vp->v_usecount == 0)
- panic("vnode_pager_alloc: no vnode reference");
+ KASSERT(vp->v_usecount != 0, ("vnode_pager_alloc: no vnode reference"));
if (object == NULL) {
/*
_______________________________________________
[email protected] mailing list
http://lists.freebsd.org/mailman/listinfo/svn-src-stable-9
To unsubscribe, send any mail to "[email protected]"