Date: Wed, 15 Apr 2015 05:13:42 +0000 (UTC) From: Dmitry Chagin <dchagin@FreeBSD.org> To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-stable@freebsd.org, svn-src-stable-10@freebsd.org Subject: svn commit: r281543 - stable/10/sys/vm Message-ID: <201504150513.t3F5Dgwo037330@svn.freebsd.org>
next in thread | raw e-mail | index | archive | help
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 */ }; /*
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201504150513.t3F5Dgwo037330>