diff options
author | alc <alc@FreeBSD.org> | 2003-08-04 04:35:04 +0000 |
---|---|---|
committer | alc <alc@FreeBSD.org> | 2003-08-04 04:35:04 +0000 |
commit | 321771d2627fb7dfe7408a8f7a6bc6dd85ddac97 (patch) | |
tree | fc14aaeb566ebb4e4f852a3620e3379c1b4c51ae /sys | |
parent | fbdcc3c06068d7212d416b75593dbf2749e93323 (diff) | |
download | FreeBSD-src-321771d2627fb7dfe7408a8f7a6bc6dd85ddac97.zip FreeBSD-src-321771d2627fb7dfe7408a8f7a6bc6dd85ddac97.tar.gz |
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
Diffstat (limited to 'sys')
-rw-r--r-- | sys/vm/vm_pager.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/vm/vm_pager.c b/sys/vm/vm_pager.c index e8e984c..9f089b7 100644 --- a/sys/vm/vm_pager.c +++ b/sys/vm/vm_pager.c @@ -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"); } |