Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/compat/sys don't overallocate (follows similar change to...
details: https://anonhg.NetBSD.org/src/rev/fc54ac477036
branches: trunk
changeset: 935486:fc54ac477036
user: jdolecek <jdolecek%NetBSD.org@localhost>
date: Fri Jul 03 18:49:37 2020 +0000
description:
don't overallocate (follows similar change to compat/sys/statvfs.h)
diffstat:
sys/compat/sys/mount.h | 6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)
diffs (24 lines):
diff -r dfdd5c2f0312 -r fc54ac477036 sys/compat/sys/mount.h
--- a/sys/compat/sys/mount.h Fri Jul 03 18:41:50 2020 +0000
+++ b/sys/compat/sys/mount.h Fri Jul 03 18:49:37 2020 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: mount.h,v 1.13 2020/06/27 15:49:30 christos Exp $ */
+/* $NetBSD: mount.h,v 1.14 2020/07/03 18:49:37 jdolecek Exp $ */
/*
* Copyright (c) 1989, 1991, 1993
@@ -137,12 +137,12 @@
static __inline int
statvfs_to_statfs12_copy(const void *vs, void *vs12, size_t l)
{
- struct statfs12 *s12 = STATVFSBUF_GET();
+ struct statfs12 *s12 = kmem_zalloc(sizeof(*s12), KM_SLEEP);
int error;
statvfs_to_statfs12(vs, s12);
error = copyout(s12, vs12, sizeof(*s12));
- STATVFSBUF_PUT(s12);
+ kmem_free(s12, sizeof(*s12));
return error;
}
Home |
Main Index |
Thread Index |
Old Index