From mboxrd@z Thu Jan 1 00:00:00 1970 From: Wu Fengguang Subject: [PATCH 21/24] cgroup: define empty css_put() when !CONFIG_CGROUPS Date: Wed, 02 Dec 2009 11:12:52 +0800 Message-ID: <20091202043046.420815285@intel.com> References: <20091202031231.735876003@intel.com> Return-path: Received: from mail138.messagelabs.com (mail138.messagelabs.com [216.82.249.35]) by kanga.kvack.org (Postfix) with SMTP id D70396007BD for ; Tue, 1 Dec 2009 23:37:38 -0500 (EST) Content-Disposition: inline; filename=memcg-css_put.patch Sender: owner-linux-mm@kvack.org To: Andi Kleen Cc: Andrew Morton , Balbir Singh , KAMEZAWA Hiroyuki , Li Zefan , Paul Menage , Wu Fengguang , Nick Piggin , linux-mm@kvack.org, LKML List-Id: linux-mm.kvack.org It will be used by the hwpoison inject code for releasing the css grabbed by try_get_mem_cgroup_from_page(). CC: Balbir Singh CC: KAMEZAWA Hiroyuki CC: Li Zefan CC: Paul Menage Signed-off-by: Wu Fengguang --- include/linux/cgroup.h | 3 +++ 1 file changed, 3 insertions(+) --- linux-mm.orig/include/linux/cgroup.h 2009-11-02 10:18:41.000000000 +0800 +++ linux-mm/include/linux/cgroup.h 2009-11-02 10:26:22.000000000 +0800 @@ -581,6 +581,9 @@ static inline int cgroupstats_build(stru return -EINVAL; } +struct cgroup_subsys_state; +static inline void css_put(struct cgroup_subsys_state *css) {} + #endif /* !CONFIG_CGROUPS */ #endif /* _LINUX_CGROUP_H */ -- 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