cgroup: export cgrp_dfl_root
authorTejun Heo <tj@kernel.org>
Wed, 5 Aug 2015 20:03:19 +0000 (16:03 -0400)
committerTejun Heo <tj@kernel.org>
Wed, 5 Aug 2015 20:03:19 +0000 (16:03 -0400)
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>
kernel/cgroup.c

index f89d9292eee62540ff1c2f81ed0a658cbd279642..3f6641632f731ae4ddc9cd731a0905c99057895a 100644 (file)
@@ -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