svn commit: r288286 - stable/10/sys/vm
Alan Cox
alc at FreeBSD.org
Sun Sep 27 01:26:42 UTC 2015
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) {
/*
More information about the svn-src-stable
mailing list