summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorprovos <provos@openbsd.org>2000-03-18 19:34:24 +0000
committerprovos <provos@openbsd.org>2000-03-18 19:34:24 +0000
commit756319cb3930f9f78ac7226e64e9303652bf5a51 (patch)
tree674f05631b642ffd283b090f7df28ab7061be20f
parentcap the maximum sessions at 2048 since that's all that is available in (diff)
downloadwireguard-openbsd-756319cb3930f9f78ac7226e64e9303652bf5a51.tar.xz
wireguard-openbsd-756319cb3930f9f78ac7226e64e9303652bf5a51.zip
make uvm swap encrypt compile again, from markus@
-rw-r--r--sys/uvm/uvm_swap.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/sys/uvm/uvm_swap.c b/sys/uvm/uvm_swap.c
index 60f80f36831..21f73ef23fe 100644
--- a/sys/uvm/uvm_swap.c
+++ b/sys/uvm/uvm_swap.c
@@ -366,15 +366,13 @@ uvm_swap_allocpages(struct vm_page **pps, int npages)
boolean_t fail;
/* Estimate if we will succeed */
- s = splimp();
- uvm_lock_fpageq();
+ s = uvm_lock_fpageq();
minus = uvmexp.free - npages;
reserve = uvmexp.reserve_kernel;
fail = uvmexp.free - npages < uvmexp.reserve_kernel;
- uvm_unlock_fpageq();
- splx(s);
+ uvm_unlock_fpageq(s);
if (fail)
return FALSE;