Lines Matching defs:root
224 #define for_each_mem_cgroup_tree(iter, root) \
225 for (iter = mem_cgroup_iter(root, NULL, NULL); \
227 iter = mem_cgroup_iter(root, iter, NULL))
886 * node. If we reparent the slab objects to the root memcg,
888 * vmstats to keep it correct for the root memcg.
1141 * @root: hierarchy root
1145 * Returns references to children of the hierarchy below @root, or
1146 * @root itself, or %NULL after a full round-trip.
1156 struct mem_cgroup *mem_cgroup_iter(struct mem_cgroup *root,
1168 if (!root)
1169 root = root_mem_cgroup;
1174 if (!root->use_hierarchy && root != root_mem_cgroup) {
1177 return root;
1185 mz = mem_cgroup_nodeinfo(root, reclaim->pgdat->node_id);
1211 css = css_next_descendant_pre(css, &root->css);
1225 * Verify the css and acquire a reference. The root
1231 if (css == &root->css)
1260 if (prev && prev != root)
1268 * @root: hierarchy root
1271 void mem_cgroup_iter_break(struct mem_cgroup *root,
1274 if (!root)
1275 root = root_mem_cgroup;
1276 if (prev && prev != root)
1307 * cgroup root (root_mem_cgroup). So we have to handle
1308 * dead_memcg from cgroup root separately.
1317 * @memcg: hierarchy root
1326 * This function must not be called for the root memory cgroup.
2115 * cgroup up to the OOMing cgroup (or root) to find the
2232 struct mem_cgroup *cached; /* this never be root cgroup */
3438 * Do not even bother to check the largest node if the root
3585 * For the root cgroup, parent_mem is NULL, we allow value to be
3884 if (mem_cgroup_is_root(memcg)) { /* Can't set limit on root */
4575 /* cannot set to root cgroup and only 0 and 1 are allowed */
5479 /* The following stuff does not apply to the root */
6334 * Cgroup retains root cgroups across [un]mount cycles making it necessary
6342 * guarantees that @root doesn't have any children, so turning it
6343 * on for the root memcg is enough.
6811 * @root: the top ancestor of the sub-tree being checked
6817 void mem_cgroup_calculate_protection(struct mem_cgroup *root,
6826 if (!root)
6827 root = root_mem_cgroup;
6836 if (memcg == root)
6848 if (parent == root) {
7287 * The root cgroup cannot be destroyed, so it's refcount must