diff options
author | Tejun Heo <tj@kernel.org> | 2013-04-15 16:41:15 -0400 |
---|---|---|
committer | Tejun Heo <tj@kernel.org> | 2013-04-15 16:46:27 -0400 |
commit | f00baae7ad6c5f1503528efa852f0be8e9513f0e (patch) | |
tree | 6d07f953aa06f01b67ed5161073778118b90e6b9 /include | |
parent | 05fb22ec5456a472a5eadcaacb3e51eca1f8c79c (diff) |
memcg: force use_hierarchy if sane_behavior
Turn on use_hierarchy by default if sane_behavior is specified and
don't create .use_hierarchy file.
It is debatable whether to remove .use_hierarchy file or make it ro as
the former could make transition easier in certain cases; however, the
behavior changes which will be gated by sane_behavior are intensive
including changing basic meaning of certain control knobs in a few
controllers and I don't really think keeping this piece would make
things easier in any noticeable way, so let's remove it.
v2: Explain that mem_cgroup_bind() doesn't have to worry about
children as suggested by Michal Hocko.
Signed-off-by: Tejun Heo <tj@kernel.org>
Acked-by: Serge E. Hallyn <serge.hallyn@ubuntu.com>
Acked-by: Li Zefan <lizefan@huawei.com>
Acked-by: Michal Hocko <mhocko@suse.cz>
Acked-by: KAMEZAWA Hiroyuki <kamezawa.hiroyu@jp.fujitsu.com>
Diffstat (limited to 'include')
-rw-r--r-- | include/linux/cgroup.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/include/linux/cgroup.h b/include/linux/cgroup.h index 64047ae7fde1..cda7eb2239e1 100644 --- a/include/linux/cgroup.h +++ b/include/linux/cgroup.h | |||
@@ -268,6 +268,9 @@ enum { | |||
268 | * | 268 | * |
269 | * - Remount is disallowed. | 269 | * - Remount is disallowed. |
270 | * | 270 | * |
271 | * - memcg: use_hierarchy is on by default and the cgroup file for | ||
272 | * the flag is not created. | ||
273 | * | ||
271 | * The followings are planned changes. | 274 | * The followings are planned changes. |
272 | * | 275 | * |
273 | * - release_agent will be disallowed once replacement notification | 276 | * - release_agent will be disallowed once replacement notification |