From e258f08ad89b4c9035d32e5c0819b70fbcf947a1 Mon Sep 17 00:00:00 2001 From: Peter Wemm Date: Thu, 1 Nov 2001 06:48:04 +0000 Subject: [PATCH] Skip PG_UNMANAGED pages when we're shooting everything down to try and reclaim pv_entries. PG_UNMANAGED pages dont have pv_entries to reclaim. Reported by: David Xu --- sys/amd64/amd64/pmap.c | 2 +- sys/i386/i386/pmap.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/sys/amd64/amd64/pmap.c b/sys/amd64/amd64/pmap.c index edd075887212..74a22c569f26 100644 --- a/sys/amd64/amd64/pmap.c +++ b/sys/amd64/amd64/pmap.c @@ -1729,7 +1729,7 @@ pmap_collect() for(i = 0; i < vm_page_array_size; i++) { m = &vm_page_array[i]; if (m->wire_count || m->hold_count || m->busy || - (m->flags & PG_BUSY)) + (m->flags & (PG_BUSY | PG_UNMANAGED))) continue; pmap_remove_all(m); } diff --git a/sys/i386/i386/pmap.c b/sys/i386/i386/pmap.c index edd075887212..74a22c569f26 100644 --- a/sys/i386/i386/pmap.c +++ b/sys/i386/i386/pmap.c @@ -1729,7 +1729,7 @@ pmap_collect() for(i = 0; i < vm_page_array_size; i++) { m = &vm_page_array[i]; if (m->wire_count || m->hold_count || m->busy || - (m->flags & PG_BUSY)) + (m->flags & (PG_BUSY | PG_UNMANAGED))) continue; pmap_remove_all(m); }