svn commit: r237733 - head/sys/amd64/amd64
Alan Cox
alc at FreeBSD.org
Thu Jun 28 22:03:59 UTC 2012
Author: alc
Date: Thu Jun 28 22:03:59 2012
New Revision: 237733
URL: http://svn.freebsd.org/changeset/base/237733
Log:
Avoid some unnecessary PV list locking in pmap_enter().
Modified:
head/sys/amd64/amd64/pmap.c
Modified: head/sys/amd64/amd64/pmap.c
==============================================================================
--- head/sys/amd64/amd64/pmap.c Thu Jun 28 21:24:56 2012 (r237732)
+++ head/sys/amd64/amd64/pmap.c Thu Jun 28 22:03:59 2012 (r237733)
@@ -3570,7 +3570,7 @@ validate:
if ((newpte & PG_RW) == 0)
invlva = TRUE;
}
- if ((origpte & PG_MANAGED) != 0) {
+ if ((om->aflags & PGA_WRITEABLE) != 0) {
CHANGE_PV_LIST_LOCK_TO_VM_PAGE(&lock, om);
if (TAILQ_EMPTY(&om->md.pv_list) &&
((om->flags & PG_FICTITIOUS) != 0 ||
More information about the svn-src-head
mailing list