diff options
author | Michael Knudsen <mk@cvs.openbsd.org> | 2008-06-14 10:55:22 +0000 |
---|---|---|
committer | Michael Knudsen <mk@cvs.openbsd.org> | 2008-06-14 10:55:22 +0000 |
commit | ace977b163a487262367b29bf0a11c9438cd3480 (patch) | |
tree | a9aacbf84fd80fdaa00d85a1f4cf5d4d21c7ae8d /sys/isofs | |
parent | 4ef5afc9653e726120eef49602859549321429b8 (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/isofs')
-rw-r--r-- | sys/isofs/udf/udf_vfsops.c | 5 | ||||
-rw-r--r-- | sys/isofs/udf/udf_vnops.c | 5 |
2 files changed, 4 insertions, 6 deletions
diff --git a/sys/isofs/udf/udf_vfsops.c b/sys/isofs/udf/udf_vfsops.c index 9b9266d8153..bc5d871f021 100644 --- a/sys/isofs/udf/udf_vfsops.c +++ b/sys/isofs/udf/udf_vfsops.c @@ -1,4 +1,4 @@ -/* $OpenBSD: udf_vfsops.c,v 1.26 2007/12/09 20:54:01 jmc Exp $ */ +/* $OpenBSD: udf_vfsops.c,v 1.27 2008/06/14 10:55:21 mk Exp $ */ /* * Copyright (c) 2001, 2002 Scott Long <scottl@freebsd.org> @@ -527,8 +527,7 @@ udf_vget(struct mount *mp, ino_t ino, struct vnode **vpp) * Allocate memory and check the tag id's before grabbing a new * vnode, since it's hard to roll back if there is a problem. */ - up = pool_get(&unode_pool, PR_WAITOK); - bzero(up, sizeof(struct unode)); + up = pool_get(&unode_pool, PR_WAITOK | PR_ZERO); /* * Copy in the file entry. Per the spec, the size can only be 1 block. diff --git a/sys/isofs/udf/udf_vnops.c b/sys/isofs/udf/udf_vnops.c index 5b096a7b8eb..52924f2d59d 100644 --- a/sys/isofs/udf/udf_vnops.c +++ b/sys/isofs/udf/udf_vnops.c @@ -1,4 +1,4 @@ -/* $OpenBSD: udf_vnops.c,v 1.32 2008/06/09 23:38:37 millert Exp $ */ +/* $OpenBSD: udf_vnops.c,v 1.33 2008/06/14 10:55:21 mk Exp $ */ /* * Copyright (c) 2001, 2002 Scott Long <scottl@freebsd.org> @@ -550,8 +550,7 @@ udf_opendir(struct unode *up, int offset, int fsize, struct umount *ump) { struct udf_dirstream *ds; - ds = pool_get(&udf_ds_pool, PR_WAITOK); - bzero(ds, sizeof(struct udf_dirstream)); + ds = pool_get(&udf_ds_pool, PR_WAITOK | PR_ZERO); ds->node = up; ds->offset = offset; |