1
0
mirror of https://git.FreeBSD.org/src.git synced 2025-02-06 18:29:47 +00:00

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
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=237733

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