Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sys/fs kmem_alloc -> kmem_zalloc, thanks Rin.



details:   https://anonhg.NetBSD.org/src/rev/1225149cdb45
branches:  trunk
changeset: 370013:1225149cdb45
user:      christos <christos%NetBSD.org@localhost>
date:      Mon Sep 12 13:11:41 2022 +0000

description:
kmem_alloc -> kmem_zalloc, thanks Rin.

diffstat:

 sys/fs/union/union_vfsops.c     |  6 +++---
 sys/fs/unionfs/unionfs_vfsops.c |  2 +-
 2 files changed, 4 insertions(+), 4 deletions(-)

diffs (39 lines):

diff -r 5be1299b4135 -r 1225149cdb45 sys/fs/union/union_vfsops.c
--- a/sys/fs/union/union_vfsops.c       Mon Sep 12 10:34:20 2022 +0000
+++ b/sys/fs/union/union_vfsops.c       Mon Sep 12 13:11:41 2022 +0000
@@ -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 @@
 {
        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
diff -r 5be1299b4135 -r 1225149cdb45 sys/fs/unionfs/unionfs_vfsops.c
--- a/sys/fs/unionfs/unionfs_vfsops.c   Mon Sep 12 10:34:20 2022 +0000
+++ b/sys/fs/unionfs/unionfs_vfsops.c   Mon Sep 12 13:11:41 2022 +0000
@@ -392,7 +392,7 @@
        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);
 



Home | Main Index | Thread Index | Old Index