Convert panic() into KASSERT().
Reviewed by: alc MFC after: 1 week
This commit is contained in:
parent
e746842845
commit
6ded84276d
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=250026
@ -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) {
|
||||
/*
|
||||
|
Loading…
Reference in New Issue
Block a user