svn commit: r284654 - head/sys/vm
Alan Cox
alc at FreeBSD.org
Sun Jun 21 01:22:36 UTC 2015
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) {
/*
More information about the svn-src-all
mailing list