Date: Sun, 21 Jun 2015 01:22:35 +0000 (UTC) From: Alan Cox <alc@FreeBSD.org> To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r284654 - head/sys/vm Message-ID: <201506210122.t5L1MZQb096589@svn.freebsd.org>
next in thread | raw e-mail | index | archive | help
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) { /*
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201506210122.t5L1MZQb096589>