summaryrefslogtreecommitdiffstats
path: root/sys/vm
diff options
context:
space:
mode:
authordchagin <dchagin@FreeBSD.org>2015-04-15 05:13:41 +0000
committerdchagin <dchagin@FreeBSD.org>2015-04-15 05:13:41 +0000
commitadf6ad45fa9da4466db74821b4aa048482b8430d (patch)
treee89655162490f8fc834937bcaed00b4b8f23e34d /sys/vm
parent887f061ed2aee5cdb4d1feca2f366981de423082 (diff)
downloadFreeBSD-src-adf6ad45fa9da4466db74821b4aa048482b8430d.zip
FreeBSD-src-adf6ad45fa9da4466db74821b4aa048482b8430d.tar.gz
MFC r281162, r281451:
Use flexible array for per cpu uma_cache to avoid allocating an extra struct uma_cache. PR: 199169
Diffstat (limited to 'sys/vm')
-rw-r--r--sys/vm/uma_int.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/vm/uma_int.h b/sys/vm/uma_int.h
index 1ffc7d5..3da310c 100644
--- a/sys/vm/uma_int.h
+++ b/sys/vm/uma_int.h
@@ -311,7 +311,7 @@ struct uma_zone {
* This HAS to be the last item because we adjust the zone size
* based on NCPU and then allocate the space for the zones.
*/
- struct uma_cache uz_cpu[1]; /* Per cpu caches */
+ struct uma_cache uz_cpu[]; /* Per cpu caches */
};
/*
OpenPOWER on IntegriCloud