summaryrefslogtreecommitdiffstats
path: root/sys/kern/vfs_init.c
diff options
context:
space:
mode:
authorart <art@openbsd.org>2007-09-07 15:00:19 +0000
committerart <art@openbsd.org>2007-09-07 15:00:19 +0000
commit28a8f404b7684433ec8c33a1be137fb4052d1648 (patch)
tree22f78d06ee32ceaa581cf540b3eaddba7db0b837 /sys/kern/vfs_init.c
parentSynced atomicio implementation in nc and sendbug with ssh. (diff)
downloadwireguard-openbsd-28a8f404b7684433ec8c33a1be137fb4052d1648.tar.xz
wireguard-openbsd-28a8f404b7684433ec8c33a1be137fb4052d1648.zip
Use M_ZERO in a few more places to shave bytes from the kernel.
eyeballed and ok dlg@
Diffstat (limited to 'sys/kern/vfs_init.c')
-rw-r--r--sys/kern/vfs_init.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/sys/kern/vfs_init.c b/sys/kern/vfs_init.c
index 7820e78beb1..4b13438a0d4 100644
--- a/sys/kern/vfs_init.c
+++ b/sys/kern/vfs_init.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: vfs_init.c,v 1.19 2007/05/29 16:25:07 thib Exp $ */
+/* $OpenBSD: vfs_init.c,v 1.20 2007/09/07 15:00:20 art Exp $ */
/* $NetBSD: vfs_init.c,v 1.6 1996/02/09 19:00:58 christos Exp $ */
/*
@@ -117,8 +117,7 @@ vfs_opv_init_explicit(struct vnodeopv_desc *vfs_opv_desc)
if (opv_desc_vector == NULL) {
/* XXX - shouldn't be M_VNODE */
opv_desc_vector = malloc(vfs_opv_numops * sizeof(PFI),
- M_VNODE, M_WAITOK);
- bzero(opv_desc_vector, vfs_opv_numops * sizeof(PFI));
+ M_VNODE, M_WAITOK|M_ZERO);
*(vfs_opv_desc->opv_desc_vector_p) = opv_desc_vector;
DODEBUG(printf("vector at %p allocated\n",
opv_desc_vector));