From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from psmtp.com (na3sys010amx205.postini.com [74.125.245.205]) by kanga.kvack.org (Postfix) with SMTP id 2620A6B0002 for ; Thu, 24 Jan 2013 02:51:59 -0500 (EST) Message-ID: <5100E82A.3060608@parallels.com> Date: Thu, 24 Jan 2013 11:52:10 +0400 From: Glauber Costa MIME-Version: 1.0 Subject: Re: [PATCH v2] memcg: reduce the size of struct memcg 244-fold. References: <1359009996-5350-1-git-send-email-glommer@parallels.com> In-Reply-To: Content-Type: text/plain; charset="ISO-8859-1" Content-Transfer-Encoding: 7bit Sender: owner-linux-mm@kvack.org List-ID: To: Greg Thelen Cc: linux-mm@kvack.org, cgroups@vger.kernel.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. -- To unsubscribe, send a message with 'unsubscribe linux-mm' in the body to majordomo@kvack.org. For more info on Linux MM, see: http://www.linux-mm.org/ . Don't email: email@kvack.org