| Date | Wed, 02 Dec 2009 11:12:52 +0800 | | From | Wu Fengguang <> | | Subject | [PATCH 21/24] cgroup: define empty css_put() when !CONFIG_CGROUPS |
| |
It will be used by the hwpoison inject code for releasing the css grabbed by try_get_mem_cgroup_from_page().
CC: Balbir Singh <balbir@linux.vnet.ibm.com> CC: KAMEZAWA Hiroyuki <kamezawa.hiroyu@jp.fujitsu.com> CC: Li Zefan <lizf@cn.fujitsu.com> CC: Paul Menage <menage@google.com> Signed-off-by: Wu Fengguang <fengguang.wu@intel.com> --- 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 */
|