Lines Matching defs:root_mem
1205 mem_cgroup_select_victim(struct mem_cgroup *root_mem)
1211 if (!root_mem->use_hierarchy) {
1212 css_get(&root_mem->css);
1213 ret = root_mem;
1218 nextid = root_mem->last_scanned_child + 1;
1219 css = css_get_next(&mem_cgroup_subsys, nextid, &root_mem->css,
1226 spin_lock(&root_mem->reclaim_param_lock);
1229 root_mem->last_scanned_child = 0;
1231 root_mem->last_scanned_child = found;
1232 spin_unlock(&root_mem->reclaim_param_lock);
1243 * root_mem is the original ancestor that we've been reclaim from.
1245 * We give up and return to the caller when we visit root_mem twice.
1250 static int mem_cgroup_hierarchical_reclaim(struct mem_cgroup *root_mem,
1261 unsigned long excess = mem_cgroup_get_excess(root_mem);
1264 if (root_mem->memsw_is_minimum)
1268 victim = mem_cgroup_select_victim(root_mem);
1269 if (victim == root_mem) {
1318 if (res_counter_check_under_soft_limit(&root_mem->res))
1320 } else if (mem_cgroup_check_under_limit(root_mem))