diff options
author | David Gwynne <dlg@cvs.openbsd.org> | 2016-09-15 02:00:19 +0000 |
---|---|---|
committer | David Gwynne <dlg@cvs.openbsd.org> | 2016-09-15 02:00:19 +0000 |
commit | 9d8236625502d9aebd87ee4b8aa759eb7dd062ae (patch) | |
tree | 608f67fdaff3caceaeb03f449b57d21037a3fe79 /sys/uvm/uvm_swap.c | |
parent | 2470899b803a7fb5d135883edd5ddd82d6a592c7 (diff) |
all pools have their ipl set via pool_setipl, so fold it into pool_init.
the ioff argument to pool_init() is unused and has been for many
years, so this replaces it with an ipl argument. because the ipl
will be set on init we no longer need pool_setipl.
most of these changes have been done with coccinelle using the spatch
below. cocci sucks at formatting code though, so i fixed that by hand.
the manpage and subr_pool.c bits i did myself.
ok tedu@ jmatthew@
@ipl@
expression pp;
expression ipl;
expression s, a, o, f, m, p;
@@
-pool_init(pp, s, a, o, f, m, p);
-pool_setipl(pp, ipl);
+pool_init(pp, s, a, ipl, f, m, p);
Diffstat (limited to 'sys/uvm/uvm_swap.c')
-rw-r--r-- | sys/uvm/uvm_swap.c | 12 |
1 files changed, 5 insertions, 7 deletions
diff --git a/sys/uvm/uvm_swap.c b/sys/uvm/uvm_swap.c index a2a3ad80226..d2edbcc44f4 100644 --- a/sys/uvm/uvm_swap.c +++ b/sys/uvm/uvm_swap.c @@ -1,4 +1,4 @@ -/* $OpenBSD: uvm_swap.c,v 1.139 2015/11/01 19:03:33 semarie Exp $ */ +/* $OpenBSD: uvm_swap.c,v 1.140 2016/09/15 02:00:18 dlg Exp $ */ /* $NetBSD: uvm_swap.c,v 1.40 2000/11/17 11:39:39 mrg Exp $ */ /* @@ -279,12 +279,10 @@ uvm_swap_init(void) panic("uvm_swap_init: extent_create failed"); /* allocate pools for structures used for swapping to files. */ - pool_init(&vndxfer_pool, sizeof(struct vndxfer), 0, 0, 0, "swp vnx", - NULL); - pool_setipl(&vndxfer_pool, IPL_BIO); - pool_init(&vndbuf_pool, sizeof(struct vndbuf), 0, 0, 0, "swp vnd", - NULL); - pool_setipl(&vndbuf_pool, IPL_BIO); + pool_init(&vndxfer_pool, sizeof(struct vndxfer), 0, IPL_BIO, 0, + "swp vnx", NULL); + pool_init(&vndbuf_pool, sizeof(struct vndbuf), 0, IPL_BIO, 0, + "swp vnd", NULL); /* Setup the initial swap partition */ swapmount(); |