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:
parent
ce4c60d38d
commit
e258f08ad8
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=85806
@ -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);
|
||||
}
|
||||
|
@ -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);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user