From 91f2b6797a2b65fad70706fada1a7a6b3386573e Mon Sep 17 00:00:00 2001 From: Olivier Houchard Date: Thu, 6 Dec 2007 23:17:24 +0000 Subject: [PATCH] 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 MFC After: 3 days --- sys/arm/arm/pmap.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sys/arm/arm/pmap.c b/sys/arm/arm/pmap.c index 27ff426a48f..b0f4ed19bd3 100644 --- a/sys/arm/arm/pmap.c +++ b/sys/arm/arm/pmap.c @@ -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 -- 2.45.0