Lines Matching refs:blkg

149 	struct blkcg_gq *blkg = tg_to_blkg(tg);  in tg_bps_limit()  local
153 if (cgroup_subsys_on_dfl(io_cgrp_subsys) && !blkg->parent) in tg_bps_limit()
160 if (!list_empty(&blkg->blkcg->css.children) || in tg_bps_limit()
179 struct blkcg_gq *blkg = tg_to_blkg(tg); in tg_iops_limit() local
183 if (cgroup_subsys_on_dfl(io_cgrp_subsys) && !blkg->parent) in tg_iops_limit()
190 if (!list_empty(&blkg->blkcg->css.children) || in tg_iops_limit()
390 struct blkcg_gq *blkg = tg_to_blkg(tg); in throtl_pd_init() local
391 struct throtl_data *td = blkg->q->td; in throtl_pd_init()
408 if (cgroup_subsys_on_dfl(io_cgrp_subsys) && blkg->parent) in throtl_pd_init()
409 sq->parent_sq = &blkg_to_tg(blkg->parent)->service_queue; in throtl_pd_init()
457 struct blkcg_gq *blkg; in blk_throtl_update_limit_valid() local
461 blkg_for_each_descendant_post(blkg, pos_css, td->queue->root_blkg) { in blk_throtl_update_limit_valid()
462 struct throtl_grp *tg = blkg_to_tg(blkg); in blk_throtl_update_limit_valid()
1148 q = tg->pd.blkg->q; in throtl_pending_timer_fn()
1281 struct blkcg_gq *blkg; in tg_conf_updated() local
1295 blkg_for_each_descendant_pre(blkg, pos_css, in tg_conf_updated()
1297 struct throtl_grp *this_tg = blkg_to_tg(blkg); in tg_conf_updated()
1302 if (!cgroup_subsys_on_dfl(io_cgrp_subsys) || !blkg->parent || in tg_conf_updated()
1303 !blkg->parent->parent) in tg_conf_updated()
1305 parent_tg = blkg_to_tg(blkg->parent); in tg_conf_updated()
1352 tg = blkg_to_tg(ctx.blkg); in tg_set_conf()
1456 const char *dname = blkg_dev_name(pd->blkg); in tg_prfill_limit()
1538 tg = blkg_to_tg(ctx.blkg); in tg_set_limit()
1783 struct blkcg_gq *blkg; in blk_throtl_cancel_bios() local
1792 blkg_for_each_descendant_post(blkg, pos_css, q->root_blkg) { in blk_throtl_cancel_bios()
1793 struct throtl_grp *tg = blkg_to_tg(blkg); in blk_throtl_cancel_bios()
1800 blkg_to_tg(blkg)->flags |= THROTL_TG_CANCELING; in blk_throtl_cancel_bios()
1817 struct blkcg_gq *blkg; in throtl_can_upgrade() local
1826 blkg_for_each_descendant_post(blkg, pos_css, td->queue->root_blkg) { in throtl_can_upgrade()
1827 struct throtl_grp *tg = blkg_to_tg(blkg); in throtl_can_upgrade()
1865 struct blkcg_gq *blkg; in throtl_upgrade_state() local
1872 blkg_for_each_descendant_post(blkg, pos_css, td->queue->root_blkg) { in throtl_upgrade_state()
1873 struct throtl_grp *tg = blkg_to_tg(blkg); in throtl_upgrade_state()
2094 struct blkcg_gq *blkg = bio->bi_blkg; in __blk_throtl_bio() local
2096 struct throtl_grp *tg = blkg_to_tg(blkg); in __blk_throtl_bio()
2235 struct blkcg_gq *blkg; in blk_throtl_bio_endio() local
2243 blkg = bio->bi_blkg; in blk_throtl_bio_endio()
2244 if (!blkg) in blk_throtl_bio_endio()
2246 tg = blkg_to_tg(blkg); in blk_throtl_bio_endio()