Date: Sun, 27 Sep 2015 01:26:42 +0000 (UTC) From: Alan Cox <alc@FreeBSD.org> To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-stable@freebsd.org, svn-src-stable-10@freebsd.org Subject: svn commit: r288286 - stable/10/sys/vm Message-ID: <201509270126.t8R1QgK8095878@repo.freebsd.org>
next in thread | raw e-mail | index | archive | help
Author: alc Date: Sun Sep 27 01:26:41 2015 New Revision: 288286 URL: https://svnweb.freebsd.org/changeset/base/288286 Log: MFC r284654 Avoid pmap_is_modified() on pages that can't be mapped. Modified: stable/10/sys/vm/vm_pageout.c Directory Properties: stable/10/ (props changed) Modified: stable/10/sys/vm/vm_pageout.c ============================================================================== --- stable/10/sys/vm/vm_pageout.c Sun Sep 27 01:20:55 2015 (r288285) +++ stable/10/sys/vm/vm_pageout.c Sun Sep 27 01:26:41 2015 (r288286) @@ -1115,9 +1115,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->valid == 0) { /*
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201509270126.t8R1QgK8095878>