Skip to content

Commit 3dd06ff

Browse files
committed
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: Tejun Heo <tj@kernel.org> Acked-by: Li Zefan <lizefan@huawei.com>
1 parent 9441962 commit 3dd06ff

2 files changed

Lines changed: 88 additions & 94 deletions

File tree

‎include/linux/cgroup.h‎

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@
2424

2525
#ifdef CONFIG_CGROUPS
2626

27-
struct cgroupfs_root;
27+
struct cgroup_root;
2828
struct cgroup_subsys;
2929
struct inode;
3030
struct cgroup;
@@ -179,7 +179,7 @@ struct cgroup {
179179
/* Private pointers for each registered subsystem */
180180
struct cgroup_subsys_state __rcu *subsys[CGROUP_SUBSYS_COUNT];
181181

182-
struct cgroupfs_root *root;
182+
struct cgroup_root *root;
183183

184184
/*
185185
* List of cgrp_cset_links pointing at css_sets with tasks in this
@@ -211,7 +211,7 @@ struct cgroup {
211211

212212
#define MAX_CGROUP_ROOT_NAMELEN 64
213213

214-
/* cgroupfs_root->flags */
214+
/* cgroup_root->flags */
215215
enum {
216216
/*
217217
* Unfortunately, cgroup core and various controllers are riddled
@@ -272,18 +272,18 @@ enum {
272272
};
273273

274274
/*
275-
* A cgroupfs_root represents the root of a cgroup hierarchy, and may be
275+
* A cgroup_root represents the root of a cgroup hierarchy, and may be
276276
* associated with a kernfs_root to form an active hierarchy. This is
277277
* internal to cgroup core. Don't access directly from controllers.
278278
*/
279-
struct cgroupfs_root {
279+
struct cgroup_root {
280280
struct kernfs_root *kf_root;
281281

282282
/* Unique id for this hierarchy. */
283283
int hierarchy_id;
284284

285285
/* The root cgroup. Root is destroyed on its release. */
286-
struct cgroup top_cgroup;
286+
struct cgroup cgrp;
287287

288288
/* Number of cgroups in the hierarchy, used only for /proc/cgroups */
289289
atomic_t nr_cgrps;
@@ -598,7 +598,7 @@ struct cgroup_subsys {
598598
const char *name;
599599

600600
/* link to parent, protected by cgroup_lock() */
601-
struct cgroupfs_root *root;
601+
struct cgroup_root *root;
602602

603603
/*
604604
* List of cftypes. Each entry is the first entry of an array

0 commit comments

Comments
 (0)