Commit c1d5d42e authored by Tejun Heo's avatar Tejun Heo

cgroup: make interface file "cgroup.sane_behavior" legacy-only

"cgroup.sane_behavior" is added to help distinguishing whether
sane_behavior is in effect or not.  We now have the default hierarchy
where the flag is always in effect and are planning to remove
supporting sane behavior on the legacy hierarchies making this file on
the default hierarchy rather pointless.  Let's make it legacy only and
thus always zero.
Signed-off-by: default avatarTejun Heo <tj@kernel.org>
Acked-by: default avatarLi Zefan <lizefan@huawei.com>
parent 7450e90b
...@@ -2470,9 +2470,7 @@ static int cgroup_release_agent_show(struct seq_file *seq, void *v) ...@@ -2470,9 +2470,7 @@ static int cgroup_release_agent_show(struct seq_file *seq, void *v)
static int cgroup_sane_behavior_show(struct seq_file *seq, void *v) static int cgroup_sane_behavior_show(struct seq_file *seq, void *v)
{ {
struct cgroup *cgrp = seq_css(seq)->cgroup; seq_puts(seq, "0\n");
seq_printf(seq, "%d\n", cgroup_sane_behavior(cgrp));
return 0; return 0;
} }
...@@ -4126,7 +4124,7 @@ static struct cftype cgroup_base_files[] = { ...@@ -4126,7 +4124,7 @@ static struct cftype cgroup_base_files[] = {
}, },
{ {
.name = "cgroup.sane_behavior", .name = "cgroup.sane_behavior",
.flags = CFTYPE_ONLY_ON_ROOT, .flags = CFTYPE_INSANE | CFTYPE_ONLY_ON_ROOT,
.seq_show = cgroup_sane_behavior_show, .seq_show = cgroup_sane_behavior_show,
}, },
{ {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment