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); }