Erm, add a missing else, we do not want to increase the mapping counters for

both kernel and userland when we create a pv for pmap_kernel.

Reported by:	Mark Tinguely <tinguely AT casselton DOT net>
MFC After:	3 days
This commit is contained in:
Olivier Houchard 2007-12-06 23:17:24 +00:00
parent 74427aa423
commit 91f2b6797a
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=174378

View File

@ -1733,7 +1733,7 @@ pmap_enter_pv(struct vm_page *pg, struct pv_entry *pve, pmap_t pm,
pg->md.krw_mappings++;
else
pg->md.kro_mappings++;
}
} else
if (flags & PVF_WRITE)
pg->md.urw_mappings++;
else