svn commit: r237139 - user/alc/superpages/sys/vm

Alan Cox alc at FreeBSD.org
Fri Jun 15 17:16:42 UTC 2012


Author: alc
Date: Fri Jun 15 17:16:41 2012
New Revision: 237139
URL: http://svn.freebsd.org/changeset/base/237139

Log:
  Now that pmap_page_is_write_mapped() may be more than an inlined Boolean
  test, restrict pmap_page_is_write_mapped() calls to only the necessary
  cases, i.e., OBJT_VNODE.

Modified:
  user/alc/superpages/sys/vm/vm_page.c

Modified: user/alc/superpages/sys/vm/vm_page.c
==============================================================================
--- user/alc/superpages/sys/vm/vm_page.c	Fri Jun 15 17:01:12 2012	(r237138)
+++ user/alc/superpages/sys/vm/vm_page.c	Fri Jun 15 17:16:41 2012	(r237139)
@@ -930,7 +930,7 @@ vm_page_insert(vm_page_t m, vm_object_t 
 	 * Since we are inserting a new and possibly dirty page,
 	 * update the object's OBJ_MIGHTBEDIRTY flag.
 	 */
-	if (pmap_page_is_write_mapped(m))
+	if (object->type == OBJT_VNODE && pmap_page_is_write_mapped(m))
 		vm_object_set_writeable_dirty(object);
 }
 


More information about the svn-src-user mailing list