Author: dchagin
Date: Wed Apr 15 05:13:41 2015
New Revision: 281543
URL: https://svnweb.freebsd.org/changeset/base/281543

Log:
  MFC r281162, r281451:
  
  Use flexible array for per cpu uma_cache to avoid allocating
  an extra struct uma_cache.
  
  PR:           199169

Modified:
  stable/10/sys/vm/uma_int.h
Directory Properties:
  stable/10/   (props changed)

Modified: stable/10/sys/vm/uma_int.h
==============================================================================
--- stable/10/sys/vm/uma_int.h  Wed Apr 15 05:04:42 2015        (r281542)
+++ stable/10/sys/vm/uma_int.h  Wed Apr 15 05:13:41 2015        (r281543)
@@ -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 */
 };
 
 /*
_______________________________________________
[email protected] mailing list
http://lists.freebsd.org/mailman/listinfo/svn-src-all
To unsubscribe, send any mail to "[email protected]"

Reply via email to