Lines Matching refs:root_mem
1390 mem_cgroup_select_victim(struct mem_cgroup *root_mem) in mem_cgroup_select_victim() argument
1396 if (!root_mem->use_hierarchy) { in mem_cgroup_select_victim()
1397 css_get(&root_mem->css); in mem_cgroup_select_victim()
1398 ret = root_mem; in mem_cgroup_select_victim()
1403 nextid = root_mem->last_scanned_child + 1; in mem_cgroup_select_victim()
1404 css = css_get_next(&mem_cgroup_subsys, nextid, &root_mem->css, in mem_cgroup_select_victim()
1413 root_mem->last_scanned_child = 0; in mem_cgroup_select_victim()
1415 root_mem->last_scanned_child = found; in mem_cgroup_select_victim()
1433 static int mem_cgroup_hierarchical_reclaim(struct mem_cgroup *root_mem, in mem_cgroup_hierarchical_reclaim() argument
1446 excess = res_counter_soft_limit_excess(&root_mem->res) >> PAGE_SHIFT; in mem_cgroup_hierarchical_reclaim()
1449 if (root_mem->memsw_is_minimum) in mem_cgroup_hierarchical_reclaim()
1453 victim = mem_cgroup_select_victim(root_mem); in mem_cgroup_hierarchical_reclaim()
1454 if (victim == root_mem) { in mem_cgroup_hierarchical_reclaim()
1503 if (!res_counter_soft_limit_excess(&root_mem->res)) in mem_cgroup_hierarchical_reclaim()
1505 } else if (mem_cgroup_margin(root_mem)) in mem_cgroup_hierarchical_reclaim()