diff options
author | dchagin <dchagin@FreeBSD.org> | 2015-04-15 05:13:41 +0000 |
---|---|---|
committer | dchagin <dchagin@FreeBSD.org> | 2015-04-15 05:13:41 +0000 |
commit | adf6ad45fa9da4466db74821b4aa048482b8430d (patch) | |
tree | e89655162490f8fc834937bcaed00b4b8f23e34d /sys/vm | |
parent | 887f061ed2aee5cdb4d1feca2f366981de423082 (diff) | |
download | FreeBSD-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.h | 2 |
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 */ }; /* |