Lines Matching refs:css
51 struct cgroup_subsys_state * const blkcg_root_css = &blkcg_root.css;
103 struct cgroup_subsys_state *css; in blkcg_css() local
105 css = kthread_blkcg(); in blkcg_css()
106 if (css) in blkcg_css()
107 return css; in blkcg_css()
172 css_put(&blkg->blkcg->css); in __blkg_release()
229 return &bio->bi_blkg->blkcg->css; in bio_blkcg_css()
241 return css_to_blkcg(blkcg->css.parent); in blkcg_parent()
335 if (!css_tryget_online(&blkcg->css)) { in blkg_create()
396 css_put(&blkcg->css); in blkg_create()
551 static int blkcg_reset_stats(struct cgroup_subsys_state *css, in blkcg_reset_stats() argument
554 struct blkcg *blkcg = css_to_blkcg(css); in blkcg_reset_stats()
888 static void blkcg_rstat_flush(struct cgroup_subsys_state *css, int cpu) in blkcg_rstat_flush() argument
890 struct blkcg *blkcg = css_to_blkcg(css); in blkcg_rstat_flush()
896 if (!cgroup_parent(css->cgroup)) in blkcg_rstat_flush()
1046 cgroup_rstat_flush(blkcg->css.cgroup); in blkcg_print_stat()
1075 struct list_head *blkcg_get_cgwb_list(struct cgroup_subsys_state *css) in blkcg_get_cgwb_list() argument
1077 return &css_to_blkcg(css)->cgwb_list; in blkcg_get_cgwb_list()
1185 static void blkcg_css_offline(struct cgroup_subsys_state *css) in blkcg_css_offline() argument
1188 wb_blkcg_offline(css); in blkcg_css_offline()
1191 blkcg_unpin_online(css); in blkcg_css_offline()
1194 static void blkcg_css_free(struct cgroup_subsys_state *css) in blkcg_css_free() argument
1196 struct blkcg *blkcg = css_to_blkcg(css); in blkcg_css_free()
1266 return &blkcg->css; in blkcg_css_alloc()
1281 static int blkcg_css_online(struct cgroup_subsys_state *css) in blkcg_css_online() argument
1283 struct blkcg *parent = blkcg_parent(css_to_blkcg(css)); in blkcg_css_online()
1291 blkcg_pin_online(&parent->css); in blkcg_css_online()
1935 struct cgroup_subsys_state *css) in blkg_tryget_closest() argument
1940 blkg = blkg_lookup_create(css_to_blkcg(css), bio->bi_bdev->bd_disk); in blkg_tryget_closest()
1968 struct cgroup_subsys_state *css) in bio_associate_blkg_from_css() argument
1973 if (css && css->parent) { in bio_associate_blkg_from_css()
1974 bio->bi_blkg = blkg_tryget_closest(bio, css); in bio_associate_blkg_from_css()
1993 struct cgroup_subsys_state *css; in bio_associate_blkg() local
1998 css = bio_blkcg_css(bio); in bio_associate_blkg()
2000 css = blkcg_css(); in bio_associate_blkg()
2002 bio_associate_blkg_from_css(bio, css); in bio_associate_blkg()
2037 if (!cgroup_parent(blkcg->css.cgroup)) in blk_cgroup_bio_start()
2068 cgroup_rstat_updated(blkcg->css.cgroup, cpu); in blk_cgroup_bio_start()
2074 struct cgroup_subsys_state *css; in blk_cgroup_congested() local
2078 for (css = blkcg_css(); css; css = css->parent) { in blk_cgroup_congested()
2079 if (atomic_read(&css->cgroup->congestion_count)) { in blk_cgroup_congested()