summaryrefslogtreecommitdiffstats
path: root/mm/memcontrol.c
diff options
context:
space:
mode:
authorTejun Heo2015-09-18 17:56:28 +0200
committerTejun Heo2015-09-18 17:56:28 +0200
commitfc5ed1e95410ad73b2ab8f33cd90eb3bcf6c98a1 (patch)
tree796ae052c16ea4a381df3e7c12982b4eeefd5e54 /mm/memcontrol.c
parentcgroup: implement static_key based cgroup_subsys_enabled() and cgroup_subsys_... (diff)
downloadkernel-qcow2-linux-fc5ed1e95410ad73b2ab8f33cd90eb3bcf6c98a1.tar.gz
kernel-qcow2-linux-fc5ed1e95410ad73b2ab8f33cd90eb3bcf6c98a1.tar.xz
kernel-qcow2-linux-fc5ed1e95410ad73b2ab8f33cd90eb3bcf6c98a1.zip
cgroup: replace cgroup_subsys->disabled tests with cgroup_subsys_enabled()
Replace cgroup_subsys->disabled tests in controllers with cgroup_subsys_enabled(). cgroup_subsys_enabled() requires literal subsys name as its parameter and thus can't be used for cgroup core which iterates through controllers. For cgroup core, introduce and use cgroup_ssid_enabled() which uses slower static_key_enabled() test and can be indexed by subsys ID. This leaves cgroup_subsys->disabled unused. Removed. Signed-off-by: Tejun Heo <tj@kernel.org> Acked-by: Zefan Li <lizefan@huawei.com> Cc: Johannes Weiner <hannes@cmpxchg.org> Cc: Michal Hocko <mhocko@kernel.org>
Diffstat (limited to 'mm/memcontrol.c')
0 files changed, 0 insertions, 0 deletions