Avoid some unnecessary PV list locking in pmap_enter().

This commit is contained in:
Alan Cox 2012-06-28 22:03:59 +00:00
parent e36042794f
commit 6c67613030

View File

@ -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 ||