mirror of
https://git.FreeBSD.org/src.git
synced 2024-12-17 10:26:15 +00:00
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
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=118413
@ -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