[PATCH 21/24] cgroup: define empty css_put() when !CONFIG_CGROUPS

From: Wu Fengguang
Date: Tue Dec 01 2009 - 23:41:22 EST


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@xxxxxxxxxxxxxxxxxx>
CC: KAMEZAWA Hiroyuki <kamezawa.hiroyu@xxxxxxxxxxxxxx>
CC: Li Zefan <lizf@xxxxxxxxxxxxxx>
CC: Paul Menage <menage@xxxxxxxxxx>
Signed-off-by: Wu Fengguang <fengguang.wu@xxxxxxxxx>
---
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 from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/