summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorVisa Hankala <visa@cvs.openbsd.org>2017-01-02 18:19:35 +0000
committerVisa Hankala <visa@cvs.openbsd.org>2017-01-02 18:19:35 +0000
commita7528607605f884d5a12c002f114e534238a3f62 (patch)
treedfef6064161532789b2570bf7317e80206cb67df
parenta13fb1a42796479e26bef1f906437ad06797c2ec (diff)
Allow freeing of newly empty directory pages.
-rw-r--r--sys/arch/mips64/mips64/pmap.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/sys/arch/mips64/mips64/pmap.c b/sys/arch/mips64/mips64/pmap.c
index 7769b5ed8d6..89692551ffd 100644
--- a/sys/arch/mips64/mips64/pmap.c
+++ b/sys/arch/mips64/mips64/pmap.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: pmap.c,v 1.99 2016/12/30 12:50:38 visa Exp $ */
+/* $OpenBSD: pmap.c,v 1.100 2017/01/02 18:19:34 visa Exp $ */
/*
* Copyright (c) 2001-2004 Opsycon AB (www.opsycon.se / www.opsycon.com)
@@ -610,7 +610,6 @@ pmap_collect(pmap_t pmap)
for (j = 0; j < NPDEPG; j++) {
if ((pte = pde[j]) == NULL)
continue;
- m++;
n = 0;
for (k = 0; k < NPTEPG; k++) {
if (pte[k] & PG_V) {
@@ -623,7 +622,8 @@ pmap_collect(pmap_t pmap)
pde[j] = NULL;
pmap_shootdown_page(pmap, 0);
pool_put(&pmap_pg_pool, pmpg);
- }
+ } else
+ m++;
}
if (m == 0) {
pmpg = pmap->pm_segtab->seg_tab[i];