summaryrefslogtreecommitdiff
path: root/sys/kern/vfs_subr.c
diff options
context:
space:
mode:
authorMichael Knudsen <mk@cvs.openbsd.org>2008-06-14 10:55:22 +0000
committerMichael Knudsen <mk@cvs.openbsd.org>2008-06-14 10:55:22 +0000
commitace977b163a487262367b29bf0a11c9438cd3480 (patch)
treea9aacbf84fd80fdaa00d85a1f4cf5d4d21c7ae8d /sys/kern/vfs_subr.c
parent4ef5afc9653e726120eef49602859549321429b8 (diff)
A bunch of pool_get() + bzero() -> pool_get(..., .. | PR_ZERO)
conversions that should shave a few bytes off the kernel. ok henning, krw, jsing, oga, miod, and thib (``even though i usually prefer FOO|BAR''; thanks for looking.
Diffstat (limited to 'sys/kern/vfs_subr.c')
-rw-r--r--sys/kern/vfs_subr.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/sys/kern/vfs_subr.c b/sys/kern/vfs_subr.c
index 0e22ab4652d..d7e525a81ee 100644
--- a/sys/kern/vfs_subr.c
+++ b/sys/kern/vfs_subr.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: vfs_subr.c,v 1.171 2008/06/13 03:45:39 beck Exp $ */
+/* $OpenBSD: vfs_subr.c,v 1.172 2008/06/14 10:55:21 mk Exp $ */
/* $NetBSD: vfs_subr.c,v 1.53 1996/04/22 01:39:13 christos Exp $ */
/*
@@ -342,8 +342,7 @@ getnewvnode(enum vtagtype tag, struct mount *mp, int (**vops)(void *),
((TAILQ_FIRST(listhd = &vnode_free_list) == NULL) &&
((TAILQ_FIRST(listhd = &vnode_hold_list) == NULL) || toggle))) {
splx(s);
- vp = pool_get(&vnode_pool, PR_WAITOK);
- bzero((char *)vp, sizeof *vp);
+ vp = pool_get(&vnode_pool, PR_WAITOK | PR_ZERO);
numvnodes++;
} else {
for (vp = TAILQ_FIRST(listhd); vp != NULLVP;