summaryrefslogtreecommitdiffstats
path: root/sys/kern/vfs_subr.c
diff options
context:
space:
mode:
authordlg <dlg@openbsd.org>2016-09-15 02:00:16 +0000
committerdlg <dlg@openbsd.org>2016-09-15 02:00:16 +0000
commit1378bae268607a02c6648b2f5af62a452cd7f812 (patch)
treedf8d0622b88e5eab156f9883c45fbd54dc90938b /sys/kern/vfs_subr.c
parentbring back r1.53 (diff)
downloadwireguard-openbsd-1378bae268607a02c6648b2f5af62a452cd7f812.tar.xz
wireguard-openbsd-1378bae268607a02c6648b2f5af62a452cd7f812.zip
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/kern/vfs_subr.c')
-rw-r--r--sys/kern/vfs_subr.c12
1 files changed, 5 insertions, 7 deletions
diff --git a/sys/kern/vfs_subr.c b/sys/kern/vfs_subr.c
index 57342527d6d..2bdb9abed61 100644
--- a/sys/kern/vfs_subr.c
+++ b/sys/kern/vfs_subr.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: vfs_subr.c,v 1.250 2016/08/25 00:01:13 dlg Exp $ */
+/* $OpenBSD: vfs_subr.c,v 1.251 2016/09/15 02:00:16 dlg Exp $ */
/* $NetBSD: vfs_subr.c,v 1.53 1996/04/22 01:39:13 christos Exp $ */
/*
@@ -143,12 +143,10 @@ vntblinit(void)
{
/* buffer cache may need a vnode for each buffer */
maxvnodes = 2 * initialvnodes;
- pool_init(&vnode_pool, sizeof(struct vnode), 0, 0, PR_WAITOK,
- "vnodes", NULL);
- pool_setipl(&vnode_pool, IPL_NONE);
- pool_init(&uvm_vnode_pool, sizeof(struct uvm_vnode), 0, 0, PR_WAITOK,
- "uvmvnodes", NULL);
- pool_setipl(&uvm_vnode_pool, IPL_NONE);
+ pool_init(&vnode_pool, sizeof(struct vnode), 0, IPL_NONE,
+ PR_WAITOK, "vnodes", NULL);
+ pool_init(&uvm_vnode_pool, sizeof(struct uvm_vnode), 0, IPL_NONE,
+ PR_WAITOK, "uvmvnodes", NULL);
TAILQ_INIT(&vnode_hold_list);
TAILQ_INIT(&vnode_free_list);
TAILQ_INIT(&mountlist);