aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTejun Heo2015-08-05 16:03:19 -0400
committerTejun Heo2015-08-05 16:03:19 -0400
commitd0ec4230a077521a984ac604acbd8c15cc12a664 (patch)
tree83e773cd268eabc429dea1f3d88a87ac726f8057
parent6abc8ca19df0078de17dc38340db3002ed489ce7 (diff)
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>
-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