Use kmem_alloc_nofault() instead of kmem_alloc_pageable() to allocate
swapbkva. Swapbkva mappings are explicitly managed using pmap_qenter(), not on-demand by vm_fault(), making kmem_alloc_nofault() more appropriate. Submitted by: tegge
This commit is contained in:
parent
21f53e9138
commit
981371629a
@ -226,7 +226,7 @@ vm_pager_bufferinit()
|
||||
|
||||
cluster_pbuf_freecnt = nswbuf / 2;
|
||||
|
||||
swapbkva = kmem_alloc_pageable(pager_map, nswbuf * MAXPHYS);
|
||||
swapbkva = kmem_alloc_nofault(pager_map, nswbuf * MAXPHYS);
|
||||
if (!swapbkva)
|
||||
panic("Not enough pager_map VM space for physical buffers");
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user