Lines Matching refs:cset
43 struct css_set *cset; in current_css_set_read() local
53 cset = task_css_set(current); in current_css_set_read()
54 refcnt = refcount_read(&cset->refcount); in current_css_set_read()
55 seq_printf(seq, "css_set %pK %d", cset, refcnt); in current_css_set_read()
56 if (refcnt > cset->nr_tasks) in current_css_set_read()
57 seq_printf(seq, " +%d", refcnt - cset->nr_tasks); in current_css_set_read()
64 css = cset->subsys[ss->id]; in current_css_set_read()
90 struct css_set *cset; in current_css_set_cg_links_read() local
99 cset = task_css_set(current); in current_css_set_cg_links_read()
100 list_for_each_entry(link, &cset->cgrp_links, cgrp_link) { in current_css_set_cg_links_read()
123 struct css_set *cset = link->cset; in cgroup_css_links_read() local
126 int refcnt = refcount_read(&cset->refcount); in cgroup_css_links_read()
132 seq_printf(seq, "css_set %pK", cset); in cgroup_css_links_read()
133 if (rcu_dereference_protected(cset->dom_cset, 1) != cset) { in cgroup_css_links_read()
135 seq_printf(seq, "=>%pK", cset->dom_cset); in cgroup_css_links_read()
137 if (!list_empty(&cset->threaded_csets)) { in cgroup_css_links_read()
141 list_for_each_entry(tcset, &cset->threaded_csets, in cgroup_css_links_read()
149 if (refcnt - cset->nr_tasks > 0) { in cgroup_css_links_read()
150 int extra = refcnt - cset->nr_tasks; in cgroup_css_links_read()
157 if (cset == &init_css_set) in cgroup_css_links_read()
164 list_for_each_entry(task, &cset->tasks, cg_list) { in cgroup_css_links_read()
170 list_for_each_entry(task, &cset->mg_tasks, cg_list) { in cgroup_css_links_read()
180 if (cset->dead) { in cgroup_css_links_read()
185 WARN_ON(count != cset->nr_tasks); in cgroup_css_links_read()