summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--sys/vm/vnode_pager.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/sys/vm/vnode_pager.c b/sys/vm/vnode_pager.c
index 8ee8471..296511e 100644
--- a/sys/vm/vnode_pager.c
+++ b/sys/vm/vnode_pager.c
@@ -214,8 +214,7 @@ retry:
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) {
/*
OpenPOWER on IntegriCloud