1
0
mirror of https://git.FreeBSD.org/src.git synced 2024-12-15 10:17:20 +00:00

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 <davidx@viasoft.com.cn>
This commit is contained in:
Peter Wemm 2001-11-01 06:48:04 +00:00
parent ce4c60d38d
commit e258f08ad8
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=85806
2 changed files with 2 additions and 2 deletions

View File

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

View File

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