Lines Matching refs:pos
91 static struct cgroup *cgroup_rstat_cpu_pop_updated(struct cgroup *pos, in cgroup_rstat_cpu_pop_updated() argument
97 if (pos == root) in cgroup_rstat_cpu_pop_updated()
104 if (!pos) { in cgroup_rstat_cpu_pop_updated()
105 pos = root; in cgroup_rstat_cpu_pop_updated()
107 if (!cgroup_rstat_cpu(pos, cpu)->updated_next) in cgroup_rstat_cpu_pop_updated()
110 pos = cgroup_parent(pos); in cgroup_rstat_cpu_pop_updated()
115 rstatc = cgroup_rstat_cpu(pos, cpu); in cgroup_rstat_cpu_pop_updated()
116 if (rstatc->updated_children == pos) in cgroup_rstat_cpu_pop_updated()
118 pos = rstatc->updated_children; in cgroup_rstat_cpu_pop_updated()
127 parent = cgroup_parent(pos); in cgroup_rstat_cpu_pop_updated()
134 while (*nextp != pos) { in cgroup_rstat_cpu_pop_updated()
145 return pos; in cgroup_rstat_cpu_pop_updated()
184 struct cgroup *pos = NULL; in cgroup_rstat_flush_locked() local
196 while ((pos = cgroup_rstat_cpu_pop_updated(pos, cgrp, cpu))) { in cgroup_rstat_flush_locked()
199 cgroup_base_stat_flush(pos, cpu); in cgroup_rstat_flush_locked()
200 bpf_rstat_flush(pos, cgroup_parent(pos), cpu); in cgroup_rstat_flush_locked()
203 list_for_each_entry_rcu(css, &pos->rstat_css_list, in cgroup_rstat_flush_locked()