Module Name: src Committed By: christos Date: Mon Sep 12 13:11:41 UTC 2022
Modified Files: src/sys/fs/union: union_vfsops.c src/sys/fs/unionfs: unionfs_vfsops.c Log Message: kmem_alloc -> kmem_zalloc, thanks Rin. To generate a diff of this commit: cvs rdiff -u -r1.82 -r1.83 src/sys/fs/union/union_vfsops.c cvs rdiff -u -r1.15 -r1.16 src/sys/fs/unionfs/unionfs_vfsops.c Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
Modified files: Index: src/sys/fs/union/union_vfsops.c diff -u src/sys/fs/union/union_vfsops.c:1.82 src/sys/fs/union/union_vfsops.c:1.83 --- src/sys/fs/union/union_vfsops.c:1.82 Sun Sep 11 11:42:29 2022 +++ src/sys/fs/union/union_vfsops.c Mon Sep 12 09:11:41 2022 @@ -1,4 +1,4 @@ -/* $NetBSD: union_vfsops.c,v 1.82 2022/09/11 15:42:29 christos Exp $ */ +/* $NetBSD: union_vfsops.c,v 1.83 2022/09/12 13:11:41 christos Exp $ */ /* * Copyright (c) 1994 The Regents of the University of California. @@ -77,7 +77,7 @@ */ #include <sys/cdefs.h> -__KERNEL_RCSID(0, "$NetBSD: union_vfsops.c,v 1.82 2022/09/11 15:42:29 christos Exp $"); +__KERNEL_RCSID(0, "$NetBSD: union_vfsops.c,v 1.83 2022/09/12 13:11:41 christos Exp $"); #include <sys/param.h> #include <sys/systm.h> @@ -423,7 +423,7 @@ union_statvfs(struct mount *mp, struct s { int error; struct union_mount *um = MOUNTTOUNIONMOUNT(mp); - struct statvfs *sbuf = kmem_alloc(sizeof(*sbuf), KM_SLEEP); + struct statvfs *sbuf = kmem_zalloc(sizeof(*sbuf), KM_SLEEP); unsigned long lbsize; #ifdef UNION_DIAGNOSTIC Index: src/sys/fs/unionfs/unionfs_vfsops.c diff -u src/sys/fs/unionfs/unionfs_vfsops.c:1.15 src/sys/fs/unionfs/unionfs_vfsops.c:1.16 --- src/sys/fs/unionfs/unionfs_vfsops.c:1.15 Sun Sep 11 12:42:07 2022 +++ src/sys/fs/unionfs/unionfs_vfsops.c Mon Sep 12 09:11:41 2022 @@ -392,7 +392,7 @@ unionfs_statvfs(struct mount *mp, struct struct unionfs_mount *ump; int error; uint64_t lbsize; - struct statvfs *sbuf = kmem_alloc(sizeof(*sbuf), KM_SLEEP); + struct statvfs *sbuf = kmem_zalloc(sizeof(*sbuf), KM_SLEEP); ump = MOUNTTOUNIONFSMOUNT(mp);