Convert panic() into KASSERT().

Reviewed by:	alc
MFC after:	1 week
This commit is contained in:
Konstantin Belousov 2013-04-28 18:40:55 +00:00
parent e746842845
commit 6ded84276d
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=250026

View File

@ -214,8 +214,7 @@ vnode_pager_alloc(void *handle, vm_ooffset_t size, vm_prot_t prot,
VM_OBJECT_SLEEP(object, 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) {
/*