Date: Fri, 15 Jun 2012 17:16:41 +0000 (UTC) From: Alan Cox <alc@FreeBSD.org> To: src-committers@freebsd.org, svn-src-user@freebsd.org Subject: svn commit: r237139 - user/alc/superpages/sys/vm Message-ID: <201206151716.q5FHGfKx094040@svn.freebsd.org>
next in thread | raw e-mail | index | archive | help
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); }
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201206151716.q5FHGfKx094040>