aboutsummaryrefslogtreecommitdiffstats
path: root/kernel/cgroup.c
diff options
context:
space:
mode:
authorTejun Heo <tj@kernel.org>2016-02-22 22:25:46 -0500
committerTejun Heo <tj@kernel.org>2016-02-22 22:25:46 -0500
commit5eb385cc5ae1b31fbcdd727854a00c5a083f6b9b (patch)
tree21604a7113399dd392cb6be63205007eb21a2b45 /kernel/cgroup.c
parentcgroup: fix error return value of cgroup_addrm_files() (diff)
downloadlinux-dev-5eb385cc5ae1b31fbcdd727854a00c5a083f6b9b.tar.xz
linux-dev-5eb385cc5ae1b31fbcdd727854a00c5a083f6b9b.zip
Revert "cgroup: add cgroup_subsys->css_e_css_changed()"
This reverts commit 56c807ba4e91f0980567b6a69de239677879b17f. cgroup_subsys->css_e_css_changed() was supposed to be used by cgroup writeback support; however, the change to per-inode cgroup association made it unnecessary and the callback doesn't have any user. Remove it. Signed-off-by: Tejun Heo <tj@kernel.org> Acked-by: Johannes Weiner <hannes@cmpxchg.org>
Diffstat (limited to 'kernel/cgroup.c')
-rw-r--r--kernel/cgroup.c18
1 files changed, 0 insertions, 18 deletions
diff --git a/kernel/cgroup.c b/kernel/cgroup.c
index 68b032df77f5..7727b6e43e10 100644
--- a/kernel/cgroup.c
+++ b/kernel/cgroup.c
@@ -3127,24 +3127,6 @@ static ssize_t cgroup_subtree_control_write(struct kernfs_open_file *of,
}
}
- /*
- * The effective csses of all the descendants (excluding @cgrp) may
- * have changed. Subsystems can optionally subscribe to this event
- * by implementing ->css_e_css_changed() which is invoked if any of
- * the effective csses seen from the css's cgroup may have changed.
- */
- for_each_subsys(ss, ssid) {
- struct cgroup_subsys_state *this_css = cgroup_css(cgrp, ss);
- struct cgroup_subsys_state *css;
-
- if (!ss->css_e_css_changed || !this_css)
- continue;
-
- css_for_each_descendant_pre(css, this_css)
- if (css != this_css)
- ss->css_e_css_changed(css);
- }
-
kernfs_activate(cgrp->kn);
ret = 0;
out_unlock: