Lines Matching refs:blkg

154 	struct blkcg_gq *blkg = tg_to_blkg(tg);  in tg_bps_limit()  local
158 if (cgroup_subsys_on_dfl(io_cgrp_subsys) && !blkg->parent) in tg_bps_limit()
165 if (!list_empty(&blkg->blkcg->css.children) || in tg_bps_limit()
184 struct blkcg_gq *blkg = tg_to_blkg(tg); in tg_iops_limit() local
188 if (cgroup_subsys_on_dfl(io_cgrp_subsys) && !blkg->parent) in tg_iops_limit()
195 if (!list_empty(&blkg->blkcg->css.children) || in tg_iops_limit()
395 struct blkcg_gq *blkg = tg_to_blkg(tg); in throtl_pd_init() local
396 struct throtl_data *td = blkg->q->td; in throtl_pd_init()
413 if (cgroup_subsys_on_dfl(io_cgrp_subsys) && blkg->parent) in throtl_pd_init()
414 sq->parent_sq = &blkg_to_tg(blkg->parent)->service_queue; in throtl_pd_init()
450 struct blkcg_gq *blkg; in blk_throtl_update_limit_valid() local
454 blkg_for_each_descendant_post(blkg, pos_css, td->queue->root_blkg) { in blk_throtl_update_limit_valid()
455 struct throtl_grp *tg = blkg_to_tg(blkg); in blk_throtl_update_limit_valid()
1266 struct blkcg_gq *blkg; in tg_conf_updated() local
1280 blkg_for_each_descendant_pre(blkg, pos_css, in tg_conf_updated()
1282 struct throtl_grp *this_tg = blkg_to_tg(blkg); in tg_conf_updated()
1287 if (!cgroup_subsys_on_dfl(io_cgrp_subsys) || !blkg->parent || in tg_conf_updated()
1288 !blkg->parent->parent) in tg_conf_updated()
1290 parent_tg = blkg_to_tg(blkg->parent); in tg_conf_updated()
1337 tg = blkg_to_tg(ctx.blkg); in tg_set_conf()
1441 const char *dname = blkg_dev_name(pd->blkg); in tg_prfill_limit()
1523 tg = blkg_to_tg(ctx.blkg); in tg_set_limit()
1769 struct blkcg_gq *blkg; in throtl_can_upgrade() local
1778 blkg_for_each_descendant_post(blkg, pos_css, td->queue->root_blkg) { in throtl_can_upgrade()
1779 struct throtl_grp *tg = blkg_to_tg(blkg); in throtl_can_upgrade()
1817 struct blkcg_gq *blkg; in throtl_upgrade_state() local
1824 blkg_for_each_descendant_post(blkg, pos_css, td->queue->root_blkg) { in throtl_upgrade_state()
1825 struct throtl_grp *tg = blkg_to_tg(blkg); in throtl_upgrade_state()
2047 struct blkcg_gq *blkg = bio->bi_blkg; in blk_throtl_charge_bio_split() local
2048 struct throtl_grp *parent = blkg_to_tg(blkg); in blk_throtl_charge_bio_split()
2067 struct blkcg_gq *blkg = bio->bi_blkg; in __blk_throtl_bio() local
2069 struct throtl_grp *tg = blkg_to_tg(blkg); in __blk_throtl_bio()
2207 struct blkcg_gq *blkg; in blk_throtl_bio_endio() local
2215 blkg = bio->bi_blkg; in blk_throtl_bio_endio()
2216 if (!blkg) in blk_throtl_bio_endio()
2218 tg = blkg_to_tg(blkg); in blk_throtl_bio_endio()