summaryrefslogtreecommitdiffstats
path: root/kernel
diff options
context:
space:
mode:
authorTejun Heo <tj@kernel.org>2015-08-05 22:03:19 +0200
committerTejun Heo <tj@kernel.org>2015-08-05 22:03:19 +0200
commitd0ec4230a077521a984ac604acbd8c15cc12a664 (patch)
tree83e773cd268eabc429dea1f3d88a87ac726f8057 /kernel
parentcgroup: define controller file conventions (diff)
downloadlinux-d0ec4230a077521a984ac604acbd8c15cc12a664.tar.xz
linux-d0ec4230a077521a984ac604acbd8c15cc12a664.zip
cgroup: export cgrp_dfl_root
While cgroup subsystems can't be modules, blkcg supports dynamically loadable policies which interact with cgroup core. Export cgrp_dfl_root so that cgroup_on_dfl() can be used in those modules. Signed-off-by: Tejun Heo <tj@kernel.org> Acked-by: Li Zefan <lizefan@huawei.com> Cc: Johannes Weiner <hannes@cmpxchg.org>
Diffstat (limited to 'kernel')
-rw-r--r--kernel/cgroup.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/kernel/cgroup.c b/kernel/cgroup.c
index f89d9292eee6..3f6641632f73 100644
--- a/kernel/cgroup.c
+++ b/kernel/cgroup.c
@@ -145,6 +145,7 @@ static const char *cgroup_subsys_name[] = {
* part of that cgroup.
*/
struct cgroup_root cgrp_dfl_root;
+EXPORT_SYMBOL_GPL(cgrp_dfl_root);
/*
* The default hierarchy always exists but is hidden until mounted for the