mirror of
https://github.com/opnsense/src.git
synced 2026-06-09 08:43:19 -04:00
Held pages, just like wired pages, should not be added to the cache queues.
Submitted by: tegge
This commit is contained in:
parent
6b312d762d
commit
529e15ed69
1 changed files with 2 additions and 1 deletions
|
|
@ -1341,7 +1341,8 @@ vm_page_cache(vm_page_t m)
|
|||
int s;
|
||||
|
||||
mtx_assert(&vm_page_queue_mtx, MA_OWNED);
|
||||
if ((m->flags & (PG_BUSY|PG_UNMANAGED)) || m->busy || m->wire_count) {
|
||||
if ((m->flags & (PG_BUSY|PG_UNMANAGED)) || m->busy ||
|
||||
m->hold_count || m->wire_count) {
|
||||
printf("vm_page_cache: attempting to cache busy page\n");
|
||||
return;
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue