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:
Alan Cox 2003-08-04 04:35:04 +00:00
parent 21f53e9138
commit 981371629a

View File

@ -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");
}