artulab
projects
/
openbsd
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
6e68cbf
)
make uvm swap encrypt compile again, from markus@
author
provos
<provos@openbsd.org>
Sat, 18 Mar 2000 19:34:24 +0000
(19:34 +0000)
committer
provos
<provos@openbsd.org>
Sat, 18 Mar 2000 19:34:24 +0000
(19:34 +0000)
sys/uvm/uvm_swap.c
patch
|
blob
|
history
diff --git
a/sys/uvm/uvm_swap.c
b/sys/uvm/uvm_swap.c
index
60f80f3
..
21f73ef
100644
(file)
--- 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;