summaryrefslogtreecommitdiffstats
path: root/sys/vm
diff options
context:
space:
mode:
authorkmacy <kmacy@FreeBSD.org>2008-05-05 19:48:54 +0000
committerkmacy <kmacy@FreeBSD.org>2008-05-05 19:48:54 +0000
commitafbf6fcd73e04b6510fe77e5897f4b00bc2951a0 (patch)
tree79b94998e8578f744173c66f743005fc070f6a5b /sys/vm
parent9dc66be7968f0fdd657867a3a0accae9a35121fb (diff)
downloadFreeBSD-src-afbf6fcd73e04b6510fe77e5897f4b00bc2951a0.zip
FreeBSD-src-afbf6fcd73e04b6510fe77e5897f4b00bc2951a0.tar.gz
add malloc flag to blist so that it can be used in ithread context
Reviewed by: alc, bsdimp
Diffstat (limited to 'sys/vm')
-rw-r--r--sys/vm/swap_pager.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/vm/swap_pager.c b/sys/vm/swap_pager.c
index 21a9826..eb910f7 100644
--- a/sys/vm/swap_pager.c
+++ b/sys/vm/swap_pager.c
@@ -2018,7 +2018,7 @@ swaponsomething(struct vnode *vp, void *id, u_long nblks, sw_strategy_t *strateg
sp->sw_strategy = strategy;
sp->sw_close = close;
- sp->sw_blist = blist_create(nblks);
+ sp->sw_blist = blist_create(nblks, M_WAITOK);
/*
* Do not free the first two block in order to avoid overwriting
* any bsd label at the front of the partition
OpenPOWER on IntegriCloud