Date: Sun, 28 Apr 2013 18:40:55 +0000 (UTC) From: Konstantin Belousov <kib@FreeBSD.org> To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r250026 - head/sys/vm Message-ID: <201304281840.r3SIetpT019668@svn.freebsd.org>
next in thread | raw e-mail | index | archive | help
Author: kib Date: Sun Apr 28 18:40:55 2013 New Revision: 250026 URL: http://svnweb.freebsd.org/changeset/base/250026 Log: Convert panic() into KASSERT(). Reviewed by: alc MFC after: 1 week Modified: head/sys/vm/vnode_pager.c Modified: head/sys/vm/vnode_pager.c ============================================================================== --- head/sys/vm/vnode_pager.c Sun Apr 28 18:12:43 2013 (r250025) +++ head/sys/vm/vnode_pager.c Sun Apr 28 18:40:55 2013 (r250026) @@ -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) { /*
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201304281840.r3SIetpT019668>