diff options
author | Ted Unangst <tedu@cvs.openbsd.org> | 2010-07-03 03:04:56 +0000 |
---|---|---|
committer | Ted Unangst <tedu@cvs.openbsd.org> | 2010-07-03 03:04:56 +0000 |
commit | 511aa257d25a10558196d79662c9ecbf300cb455 (patch) | |
tree | c23fb86c5b654e63cc30707f8af1c7eec9ef1fee /sys/uvm | |
parent | ba0fe373dd7ab9eb76af982a1eb62958ce275ce9 (diff) |
explicitly specify flags to malloc and pool_get instead of relying on 0.
This is more clear, and as thib pointed out, the default in softraid was
wrong. ok thib.
Diffstat (limited to 'sys/uvm')
-rw-r--r-- | sys/uvm/uvm_amap.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/sys/uvm/uvm_amap.c b/sys/uvm/uvm_amap.c index e2645412a3c..2ba81cd27b8 100644 --- a/sys/uvm/uvm_amap.c +++ b/sys/uvm/uvm_amap.c @@ -1,4 +1,4 @@ -/* $OpenBSD: uvm_amap.c,v 1.44 2009/03/25 20:00:18 oga Exp $ */ +/* $OpenBSD: uvm_amap.c,v 1.45 2010/07/03 03:04:55 tedu Exp $ */ /* $NetBSD: uvm_amap.c,v 1.27 2000/11/25 06:27:59 chs Exp $ */ /* @@ -185,7 +185,8 @@ amap_alloc1(int slots, int padslots, int waitf) struct vm_amap *amap; int totalslots; - amap = pool_get(&uvm_amap_pool, (waitf == M_WAITOK) ? PR_WAITOK : 0); + amap = pool_get(&uvm_amap_pool, (waitf == M_WAITOK) ? PR_WAITOK + : PR_NOWAIT); if (amap == NULL) return(NULL); |