diff options
author | Tejun Heo <tj@kernel.org> | 2014-04-23 19:13:16 +0400 |
---|---|---|
committer | Tejun Heo <tj@kernel.org> | 2014-04-23 19:13:16 +0400 |
commit | 6803c006282768ec850760766a6e4eb1a6ff87df (patch) | |
tree | e06bc433865262b4943d3e06e8f3530d34c509bc /include | |
parent | bd53d617b34c781dac8e22dbc75e8f182d918ecf (diff) | |
download | linux-6803c006282768ec850760766a6e4eb1a6ff87df.tar.xz |
cgroup: add css_set->dfl_cgrp
To implement the unified hierarchy behavior, we'll need to be able to
determine the associated cgroup on the default hierarchy from css_set.
Let's add css_set->dfl_cgrp so that it can be accessed conveniently
and efficiently.
Signed-off-by: Tejun Heo <tj@kernel.org>
Acked-by: Li Zefan <lizefan@huawei.com>
Diffstat (limited to 'include')
-rw-r--r-- | include/linux/cgroup.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/include/linux/cgroup.h b/include/linux/cgroup.h index 18fcae39e63e..c49d161a71cd 100644 --- a/include/linux/cgroup.h +++ b/include/linux/cgroup.h @@ -354,6 +354,9 @@ struct css_set { */ struct list_head cgrp_links; + /* the default cgroup associated with this css_set */ + struct cgroup *dfl_cgrp; + /* * Set of subsystem states, one for each subsystem. This array is * immutable after creation apart from the init_css_set during |