diff options
author | Artur Grabowski <art@cvs.openbsd.org> | 2007-09-07 15:00:21 +0000 |
---|---|---|
committer | Artur Grabowski <art@cvs.openbsd.org> | 2007-09-07 15:00:21 +0000 |
commit | 85ce33f47337d8ae2200b69c865bad9704a53564 (patch) | |
tree | 45c03da13cdd18d57180b1614667ab28a7a26012 /sys/kern/vfs_syscalls.c | |
parent | 27eb8946aec561bdd8abb9e09db43d6f4093d59a (diff) |
Use M_ZERO in a few more places to shave bytes from the kernel.
eyeballed and ok dlg@
Diffstat (limited to 'sys/kern/vfs_syscalls.c')
-rw-r--r-- | sys/kern/vfs_syscalls.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/sys/kern/vfs_syscalls.c b/sys/kern/vfs_syscalls.c index 0dd0099c80d..56da038c4f0 100644 --- a/sys/kern/vfs_syscalls.c +++ b/sys/kern/vfs_syscalls.c @@ -1,4 +1,4 @@ -/* $OpenBSD: vfs_syscalls.c,v 1.142 2007/08/30 12:35:27 thib Exp $ */ +/* $OpenBSD: vfs_syscalls.c,v 1.143 2007/09/07 15:00:20 art Exp $ */ /* $NetBSD: vfs_syscalls.c,v 1.71 1996/04/23 10:29:02 mycroft Exp $ */ /* @@ -237,8 +237,7 @@ sys_mount(struct proc *p, void *v, register_t *retval) * Allocate and initialize the file system. */ mp = (struct mount *)malloc((u_long)sizeof(struct mount), - M_MOUNT, M_WAITOK); - bzero((char *)mp, (u_long)sizeof(struct mount)); + M_MOUNT, M_WAITOK|M_ZERO); (void) vfs_busy(mp, VB_READ|VB_NOWAIT); mp->mnt_op = vfsp->vfc_vfsops; mp->mnt_vfc = vfsp; |