Author: alc
Date: Sun Jun 21 01:22:35 2015
New Revision: 284654
URL: https://svnweb.freebsd.org/changeset/base/284654

Log:
  Avoid pmap_is_modified() on pages that can't be mapped.
  
  MFC after:    1 week
  Sponsored by: EMC / Isilon Storage Division

Modified:
  head/sys/vm/vm_pageout.c

Modified: head/sys/vm/vm_pageout.c
==============================================================================
--- head/sys/vm/vm_pageout.c    Sun Jun 21 00:36:02 2015        (r284653)
+++ head/sys/vm/vm_pageout.c    Sun Jun 21 01:22:35 2015        (r284654)
@@ -1226,9 +1226,11 @@ vm_pageout_scan(struct vm_domain *vmd, i
                 * then the page may still be modified until the last of those
                 * mappings are removed.
                 */
-               vm_page_test_dirty(m);
-               if (m->dirty == 0 && object->ref_count != 0)
-                       pmap_remove_all(m);
+               if (object->ref_count != 0) {
+                       vm_page_test_dirty(m);
+                       if (m->dirty == 0)
+                               pmap_remove_all(m);
+               }
 
                if (m->dirty == 0) {
                        /*
_______________________________________________
svn-src-head@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/svn-src-head
To unsubscribe, send any mail to "svn-src-head-unsubscr...@freebsd.org"

Reply via email to