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

Konstantin Belousov kib at FreeBSD.org
Mon Jun 11 21:08:53 UTC 2012


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);


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