From 44ab6b30531a8884c2b22b9cc6a4e489690bf27b Mon Sep 17 00:00:00 2001 From: alc Date: Thu, 28 Jun 2012 22:03:59 +0000 Subject: Avoid some unnecessary PV list locking in pmap_enter(). --- sys/amd64/amd64/pmap.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'sys/amd64') diff --git a/sys/amd64/amd64/pmap.c b/sys/amd64/amd64/pmap.c index fff27dc..16eeb95 100644 --- a/sys/amd64/amd64/pmap.c +++ b/sys/amd64/amd64/pmap.c @@ -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 || -- cgit v1.1