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))
907 * node. If we reparent the slab objects to the root memcg,
909 * vmstats to keep it correct for the root memcg.
1054 * 3) root memcg
1069 * No need to css_get on root memcg as the reference
1070 * counting is disabled on the root level in the
1111 * @root: hierarchy root
1115 * Returns references to children of the hierarchy below @root, or
1116 * @root itself, or %NULL after a full round-trip.
1126 struct mem_cgroup *mem_cgroup_iter(struct mem_cgroup *root,
1138 if (!root)
1139 root = root_mem_cgroup;
1146 mz = root->nodeinfo[reclaim->pgdat->node_id];
1180 css = css_next_descendant_pre(css, &root->css);
1194 * Verify the css and acquire a reference. The root
1198 if (css == &root->css || css_tryget(css)) {
1221 if (prev && prev != root)
1229 * @root: hierarchy root
1232 void mem_cgroup_iter_break(struct mem_cgroup *root,
1235 if (!root)
1236 root = root_mem_cgroup;
1237 if (prev && prev != root)
1268 * cgroup root (root_mem_cgroup). So we have to handle
1269 * dead_memcg from cgroup root separately.
1278 * @memcg: hierarchy root
1287 * This function must not be called for the root memory cgroup.
2102 * cgroup up to the OOMing cgroup (or root) to find the
2211 struct mem_cgroup *cached; /* this never be root cgroup */
3576 * Do not even bother to check the largest node if the root
3701 * Approximate root's usage from global state. This isn't
3702 * perfect, but the root usage was always an approximation.
3890 if (mem_cgroup_is_root(memcg)) { /* Can't set limit on root */
4571 /* cannot set to root cgroup and only 0 and 1 are allowed */
7012 * @root: the top ancestor of the sub-tree being checked
7018 void mem_cgroup_calculate_protection(struct mem_cgroup *root,
7027 if (!root)
7028 root = root_mem_cgroup;
7037 if (memcg == root)
7046 if (parent == root) {
7250 /* LRU pages aren't accounted at the root level */
7493 * The root cgroup cannot be destroyed, so it's refcount must