Added a check/panic for v_usecount being 0 (no vnode reference) in

vnode_pager_alloc().
This commit is contained in:
David Greenman 1997-01-24 22:20:23 +00:00
parent fe95dc619a
commit 098415100b

View File

@ -148,6 +148,8 @@ vnode_pager_alloc(handle, size, prot, offset)
else
object->flags = 0;
if (vp->v_usecount == 0)
panic("vnode_pager_alloc: no vnode reference");
/*
* Hold a reference to the vnode and initialize object data.
*/