Lines Matching refs:root
239 #define for_each_mem_cgroup_tree(iter, root) \ argument
240 for (iter = mem_cgroup_iter(root, NULL, NULL); \
242 iter = mem_cgroup_iter(root, iter, NULL))
1025 struct mem_cgroup *mem_cgroup_iter(struct mem_cgroup *root, in mem_cgroup_iter() argument
1037 if (!root) in mem_cgroup_iter()
1038 root = root_mem_cgroup; in mem_cgroup_iter()
1043 if (!root->use_hierarchy && root != root_mem_cgroup) { in mem_cgroup_iter()
1046 return root; in mem_cgroup_iter()
1054 mz = mem_cgroup_nodeinfo(root, reclaim->pgdat->node_id); in mem_cgroup_iter()
1080 css = css_next_descendant_pre(css, &root->css); in mem_cgroup_iter()
1100 if (css == &root->css) in mem_cgroup_iter()
1129 if (prev && prev != root) in mem_cgroup_iter()
1140 void mem_cgroup_iter_break(struct mem_cgroup *root, in mem_cgroup_iter_break() argument
1143 if (!root) in mem_cgroup_iter_break()
1144 root = root_mem_cgroup; in mem_cgroup_iter_break()
1145 if (prev && prev != root) in mem_cgroup_iter_break()
6367 enum mem_cgroup_protection mem_cgroup_protected(struct mem_cgroup *root, in mem_cgroup_protected() argument
6378 if (!root) in mem_cgroup_protected()
6379 root = root_mem_cgroup; in mem_cgroup_protected()
6380 if (memcg == root) in mem_cgroup_protected()
6395 if (parent == root) in mem_cgroup_protected()