From 981371629a7eb571690c34e517962843a7f9a15a Mon Sep 17 00:00:00 2001 From: Alan Cox Date: Mon, 4 Aug 2003 04:35:04 +0000 Subject: [PATCH] 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 --- sys/vm/vm_pager.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sys/vm/vm_pager.c b/sys/vm/vm_pager.c index e8e984cd9fcd..9f089b71df5c 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"); }