|
@@ -5232,7 +5232,9 @@ static void mem_cgroup_bind(struct cgroup_subsys_state *root_css)
|
|
* on for the root memcg is enough.
|
|
* on for the root memcg is enough.
|
|
*/
|
|
*/
|
|
if (cgroup_on_dfl(root_css->cgroup))
|
|
if (cgroup_on_dfl(root_css->cgroup))
|
|
- mem_cgroup_from_css(root_css)->use_hierarchy = true;
|
|
|
|
|
|
+ root_mem_cgroup->use_hierarchy = true;
|
|
|
|
+ else
|
|
|
|
+ root_mem_cgroup->use_hierarchy = false;
|
|
}
|
|
}
|
|
|
|
|
|
static u64 memory_current_read(struct cgroup_subsys_state *css,
|
|
static u64 memory_current_read(struct cgroup_subsys_state *css,
|