mirror of
https://github.com/opnsense/src.git
synced 2026-06-10 01:00:30 -04:00
If attempting to cache a "busy", panic instead of printing a diagnostic
message and returning.
This commit is contained in:
parent
96c52b20b1
commit
bcc231ecb6
1 changed files with 1 additions and 2 deletions
|
|
@ -1359,8 +1359,7 @@ vm_page_cache(vm_page_t m)
|
|||
VM_OBJECT_LOCK_ASSERT(m->object, MA_OWNED);
|
||||
if ((m->flags & PG_UNMANAGED) || (m->oflags & VPO_BUSY) || m->busy ||
|
||||
m->hold_count || m->wire_count) {
|
||||
printf("vm_page_cache: attempting to cache busy page\n");
|
||||
return;
|
||||
panic("vm_page_cache: attempting to cache busy page");
|
||||
}
|
||||
if (VM_PAGE_INQUEUE1(m, PQ_CACHE))
|
||||
return;
|
||||
|
|
|
|||
Loading…
Reference in a new issue