Lines Matching refs:root
231 #define for_each_mem_cgroup_tree(iter, root) \ argument
232 for (iter = mem_cgroup_iter(root, NULL, NULL); \
234 iter = mem_cgroup_iter(root, iter, NULL))
1032 struct mem_cgroup *mem_cgroup_iter(struct mem_cgroup *root, in mem_cgroup_iter() argument
1044 if (!root) in mem_cgroup_iter()
1045 root = root_mem_cgroup; in mem_cgroup_iter()
1055 mz = root->nodeinfo[reclaim->pgdat->node_id]; in mem_cgroup_iter()
1081 css = css_next_descendant_pre(css, &root->css); in mem_cgroup_iter()
1101 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()
6757 void mem_cgroup_calculate_protection(struct mem_cgroup *root, in mem_cgroup_calculate_protection() argument
6766 if (!root) in mem_cgroup_calculate_protection()
6767 root = root_mem_cgroup; in mem_cgroup_calculate_protection()
6776 if (memcg == root) in mem_cgroup_calculate_protection()
6790 if (parent == root) { in mem_cgroup_calculate_protection()