Lines Matching refs:css
50 struct cgroup_subsys_state * const blkcg_root_css = &blkcg_root.css;
71 struct cgroup_subsys_state *css; in blkcg_css() local
73 css = kthread_blkcg(); in blkcg_css()
74 if (css) in blkcg_css()
75 return css; in blkcg_css()
128 css_put(&blkg->blkcg->css); in __blkg_release()
187 return &bio->bi_blkg->blkcg->css; in bio_blkcg_css()
199 return css_to_blkcg(blkcg->css.parent); in blkcg_parent()
285 if (!css_tryget_online(&blkcg->css)) { in blkg_create()
343 css_put(&blkcg->css); in blkg_create()
490 static int blkcg_reset_stats(struct cgroup_subsys_state *css, in blkcg_reset_stats() argument
493 struct blkcg *blkcg = css_to_blkcg(css); in blkcg_reset_stats()
827 static void blkcg_rstat_flush(struct cgroup_subsys_state *css, int cpu) in blkcg_rstat_flush() argument
829 struct blkcg *blkcg = css_to_blkcg(css); in blkcg_rstat_flush()
833 if (!cgroup_parent(css->cgroup)) in blkcg_rstat_flush()
972 cgroup_rstat_flush(blkcg->css.cgroup); in blkcg_print_stat()
1001 struct list_head *blkcg_get_cgwb_list(struct cgroup_subsys_state *css) in blkcg_get_cgwb_list() argument
1003 return &css_to_blkcg(css)->cgwb_list; in blkcg_get_cgwb_list()
1111 static void blkcg_css_offline(struct cgroup_subsys_state *css) in blkcg_css_offline() argument
1114 wb_blkcg_offline(css); in blkcg_css_offline()
1117 blkcg_unpin_online(css); in blkcg_css_offline()
1120 static void blkcg_css_free(struct cgroup_subsys_state *css) in blkcg_css_free() argument
1122 struct blkcg *blkcg = css_to_blkcg(css); in blkcg_css_free()
1192 return &blkcg->css; in blkcg_css_alloc()
1206 static int blkcg_css_online(struct cgroup_subsys_state *css) in blkcg_css_online() argument
1208 struct blkcg *parent = blkcg_parent(css_to_blkcg(css)); in blkcg_css_online()
1216 blkcg_pin_online(&parent->css); in blkcg_css_online()
1850 struct cgroup_subsys_state *css) in blkg_tryget_closest() argument
1855 blkg = blkg_lookup_create(css_to_blkcg(css), bio->bi_bdev->bd_disk); in blkg_tryget_closest()
1883 struct cgroup_subsys_state *css) in bio_associate_blkg_from_css() argument
1888 if (css && css->parent) { in bio_associate_blkg_from_css()
1889 bio->bi_blkg = blkg_tryget_closest(bio, css); in bio_associate_blkg_from_css()
1908 struct cgroup_subsys_state *css; in bio_associate_blkg() local
1913 css = bio_blkcg_css(bio); in bio_associate_blkg()
1915 css = blkcg_css(); in bio_associate_blkg()
1917 bio_associate_blkg_from_css(bio, css); in bio_associate_blkg()
1966 cgroup_rstat_updated(bio->bi_blkg->blkcg->css.cgroup, cpu); in blk_cgroup_bio_start()
1972 struct cgroup_subsys_state *css; in blk_cgroup_congested() local
1976 for (css = blkcg_css(); css; css = css->parent) { in blk_cgroup_congested()
1977 if (atomic_read(&css->cgroup->congestion_count)) { in blk_cgroup_congested()