From mboxrd@z Thu Jan 1 00:00:00 1970 From: Glauber Costa Subject: Re: [PATCH v2] memcg: reduce the size of struct memcg 244-fold. Date: Thu, 24 Jan 2013 11:52:10 +0400 Message-ID: <5100E82A.3060608@parallels.com> References: <1359009996-5350-1-git-send-email-glommer@parallels.com> Mime-Version: 1.0 Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: Sender: cgroups-owner-u79uwXL29TY76Z2rM5mHXA@public.gmane.org List-ID: Content-Type: text/plain; charset="us-ascii" To: Greg Thelen Cc: linux-mm-Bw31MaZKKs3YtjvyW6yDsg@public.gmane.org, cgroups-u79uwXL29TY76Z2rM5mHXA@public.gmane.org, Michal Hocko , Kamezawa Hiroyuki , Johannes Weiner , Hugh Dickins , Ying Han , Mel Gorman , Rik van Riel >> +static inline size_t memcg_size(void) >> +{ >> + return sizeof(struct mem_cgroup) + >> + nr_node_ids * sizeof(struct mem_cgroup_per_node); >> +} >> + > > Tangential question: why use inline here? I figure that modern > compilers are good at making inlining decisions. I was born last century. No reason, really. Just habit.