Commit 3dd06ffa authored by Tejun Heo's avatar Tejun Heo

cgroup: rename cgroup_dummy_root and related names

The dummy root will be repurposed to serve as the default unified
hierarchy.  Let's rename things in preparation.

* s/cgroup_dummy_root/cgrp_dfl_root/
* s/cgroupfs_root/cgroup_root/ as we don't do fs part directly anymore
* s/cgroup_root->top_cgroup/cgroup_root->cgrp/ for brevity

This is pure rename.
Signed-off-by: default avatarTejun Heo <tj@kernel.org>
Acked-by: default avatarLi Zefan <lizefan@huawei.com>
parent 94419627
...@@ -24,7 +24,7 @@ ...@@ -24,7 +24,7 @@
#ifdef CONFIG_CGROUPS #ifdef CONFIG_CGROUPS
struct cgroupfs_root; struct cgroup_root;
struct cgroup_subsys; struct cgroup_subsys;
struct inode; struct inode;
struct cgroup; struct cgroup;
...@@ -179,7 +179,7 @@ struct cgroup { ...@@ -179,7 +179,7 @@ struct cgroup {
/* Private pointers for each registered subsystem */ /* Private pointers for each registered subsystem */
struct cgroup_subsys_state __rcu *subsys[CGROUP_SUBSYS_COUNT]; struct cgroup_subsys_state __rcu *subsys[CGROUP_SUBSYS_COUNT];
struct cgroupfs_root *root; struct cgroup_root *root;
/* /*
* List of cgrp_cset_links pointing at css_sets with tasks in this * List of cgrp_cset_links pointing at css_sets with tasks in this
...@@ -211,7 +211,7 @@ struct cgroup { ...@@ -211,7 +211,7 @@ struct cgroup {
#define MAX_CGROUP_ROOT_NAMELEN 64 #define MAX_CGROUP_ROOT_NAMELEN 64
/* cgroupfs_root->flags */ /* cgroup_root->flags */
enum { enum {
/* /*
* Unfortunately, cgroup core and various controllers are riddled * Unfortunately, cgroup core and various controllers are riddled
...@@ -272,18 +272,18 @@ enum { ...@@ -272,18 +272,18 @@ enum {
}; };
/* /*
* A cgroupfs_root represents the root of a cgroup hierarchy, and may be * A cgroup_root represents the root of a cgroup hierarchy, and may be
* associated with a kernfs_root to form an active hierarchy. This is * associated with a kernfs_root to form an active hierarchy. This is
* internal to cgroup core. Don't access directly from controllers. * internal to cgroup core. Don't access directly from controllers.
*/ */
struct cgroupfs_root { struct cgroup_root {
struct kernfs_root *kf_root; struct kernfs_root *kf_root;
/* Unique id for this hierarchy. */ /* Unique id for this hierarchy. */
int hierarchy_id; int hierarchy_id;
/* The root cgroup. Root is destroyed on its release. */ /* The root cgroup. Root is destroyed on its release. */
struct cgroup top_cgroup; struct cgroup cgrp;
/* Number of cgroups in the hierarchy, used only for /proc/cgroups */ /* Number of cgroups in the hierarchy, used only for /proc/cgroups */
atomic_t nr_cgrps; atomic_t nr_cgrps;
...@@ -598,7 +598,7 @@ struct cgroup_subsys { ...@@ -598,7 +598,7 @@ struct cgroup_subsys {
const char *name; const char *name;
/* link to parent, protected by cgroup_lock() */ /* link to parent, protected by cgroup_lock() */
struct cgroupfs_root *root; struct cgroup_root *root;
/* /*
* List of cftypes. Each entry is the first entry of an array * List of cftypes. Each entry is the first entry of an array
......
This diff is collapsed.
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment