Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 11 Jun 2012 21:08:53 +0000 (UTC)
From:      Konstantin Belousov <kib@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-stable@freebsd.org, svn-src-stable-9@freebsd.org
Subject:   svn commit: r236922 - stable/9/sys/vm
Message-ID:  <201206112108.q5BL8ruU010145@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: kib
Date: Mon Jun 11 21:08:52 2012
New Revision: 236922
URL: http://svn.freebsd.org/changeset/base/236922

Log:
  MFC r235365:
  Assert that the page passed to vm_page_putfake() is unmanaged.

Modified:
  stable/9/sys/vm/vm_page.c
Directory Properties:
  stable/9/sys/   (props changed)

Modified: stable/9/sys/vm/vm_page.c
==============================================================================
--- stable/9/sys/vm/vm_page.c	Mon Jun 11 21:06:10 2012	(r236921)
+++ stable/9/sys/vm/vm_page.c	Mon Jun 11 21:08:52 2012	(r236922)
@@ -665,6 +665,7 @@ void
 vm_page_putfake(vm_page_t m)
 {
 
+	KASSERT((m->oflags & VPO_UNMANAGED) != 0, ("managed %p", m));
 	KASSERT((m->flags & PG_FICTITIOUS) != 0,
 	    ("vm_page_putfake: bad page %p", m));
 	uma_zfree(fakepg_zone, m);



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201206112108.q5BL8ruU010145>