From mboxrd@z Thu Jan 1 00:00:00 1970 Message-ID: <481FB50D.1070308@cn.fujitsu.com> Date: Tue, 06 May 2008 09:31:57 +0800 From: Li Zefan MIME-Version: 1.0 Subject: Re: [-mm][PATCH 1/4] Setup the rlimit controller References: <20080503213726.3140.68845.sendpatchset@localhost.localdomain> <20080503213736.3140.83278.sendpatchset@localhost.localdomain> In-Reply-To: <20080503213736.3140.83278.sendpatchset@localhost.localdomain> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Sender: owner-linux-mm@kvack.org Return-Path: To: Balbir Singh Cc: linux-mm@kvack.org, Sudhir Kumar , YAMAMOTO Takashi , Paul Menage , linux-kernel@vger.kernel.org, David Rientjes , Pavel Emelianov , Andrew Morton , KAMEZAWA Hiroyuki List-ID: Balbir Singh wrote: > +struct cgroup_subsys rlimit_cgroup_subsys; > + > +struct rlimit_cgroup { > + struct cgroup_subsys_state css; > + struct res_counter as_res; /* address space counter */ > +}; > + > +static struct rlimit_cgroup init_rlimit_cgroup; > + > +struct rlimit_cgroup *rlimit_cgroup_from_cgrp(struct cgroup *cgrp) It can be static if I don't miss anything. > +{ > + return container_of(cgroup_subsys_state(cgrp, rlimit_cgroup_subsys_id), > + struct rlimit_cgroup, css); > +} > + -- 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