svn commit: r250262 - stable/9/sys/vm

Konstantin Belousov kib at FreeBSD.org
Sun May 5 06:25:29 UTC 2013


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) {
 		/*


More information about the svn-src-stable-9 mailing list