move cgroupfs_root to include/linux/cgroup.h
authorTejun Heo <tj@kernel.org>
Mon, 15 Apr 2013 03:15:25 +0000 (20:15 -0700)
committerTejun Heo <tj@kernel.org>
Mon, 15 Apr 2013 03:15:25 +0000 (20:15 -0700)
commit25a7e6848db76e22677aff202d9c4ef3503be15b
treee3f944266f4a6ded61ce5d88a5c2c9c33794c366
parent9343862945fdd3dd5cb7648bb24cabe40faa9ad9
move cgroupfs_root to include/linux/cgroup.h

While controllers shouldn't be accessing cgroupfs_root directly, it
being hidden inside kern/cgroup.c makes somethings pretty silly.  This
makes routing hierarchy-wide settings which need to be visible to
controllers cumbersome.

We're gonna add another hierarchy-wide setting which needs to be
accessed from controllers.  Move cgroupfs_root and its flags to the
header file so that we can access root settings with inline helpers.

Signed-off-by: Tejun Heo <tj@kernel.org>
Acked-by: Serge E. Hallyn <serge.hallyn@ubuntu.com>
Acked-by: Li Zefan <lizefan@huawei.com>
include/linux/cgroup.h
kernel/cgroup.c