svn commit: r281543 - stable/10/sys/vm

Dmitry Chagin dchagin at FreeBSD.org
Wed Apr 15 05:13:42 UTC 2015


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 */
 };
 
 /*


More information about the svn-src-all mailing list