Lines Matching refs:blkg
236 static inline struct throtl_grp *blkg_to_tg(struct blkcg_gq *blkg) in blkg_to_tg() argument
238 return pd_to_tg(blkg_to_pd(blkg, &blkcg_policy_throtl)); in blkg_to_tg()
298 struct blkcg_gq *blkg = tg_to_blkg(tg); in tg_bps_limit() local
302 if (cgroup_subsys_on_dfl(io_cgrp_subsys) && !blkg->parent) in tg_bps_limit()
309 if (!list_empty(&blkg->blkcg->css.children) || in tg_bps_limit()
328 struct blkcg_gq *blkg = tg_to_blkg(tg); in tg_iops_limit() local
332 if (cgroup_subsys_on_dfl(io_cgrp_subsys) && !blkg->parent) in tg_iops_limit()
339 if (!list_empty(&blkg->blkcg->css.children) || in tg_iops_limit()
539 struct blkcg_gq *blkg = tg_to_blkg(tg); in throtl_pd_init() local
540 struct throtl_data *td = blkg->q->td; in throtl_pd_init()
557 if (cgroup_subsys_on_dfl(io_cgrp_subsys) && blkg->parent) in throtl_pd_init()
558 sq->parent_sq = &blkg_to_tg(blkg->parent)->service_queue; in throtl_pd_init()
593 struct blkcg_gq *blkg; in blk_throtl_update_limit_valid() local
597 blkg_for_each_descendant_post(blkg, pos_css, td->queue->root_blkg) { in blk_throtl_update_limit_valid()
598 struct throtl_grp *tg = blkg_to_tg(blkg); in blk_throtl_update_limit_valid()
1396 struct blkcg_gq *blkg; in tg_conf_updated() local
1410 blkg_for_each_descendant_pre(blkg, pos_css, in tg_conf_updated()
1412 struct throtl_grp *this_tg = blkg_to_tg(blkg); in tg_conf_updated()
1417 if (!cgroup_subsys_on_dfl(io_cgrp_subsys) || !blkg->parent || in tg_conf_updated()
1418 !blkg->parent->parent) in tg_conf_updated()
1420 parent_tg = blkg_to_tg(blkg->parent); in tg_conf_updated()
1467 tg = blkg_to_tg(ctx.blkg); in tg_set_conf()
1571 const char *dname = blkg_dev_name(pd->blkg); in tg_prfill_limit()
1653 tg = blkg_to_tg(ctx.blkg); in tg_set_limit()
1899 struct blkcg_gq *blkg; in throtl_can_upgrade() local
1908 blkg_for_each_descendant_post(blkg, pos_css, td->queue->root_blkg) { in throtl_can_upgrade()
1909 struct throtl_grp *tg = blkg_to_tg(blkg); in throtl_can_upgrade()
1947 struct blkcg_gq *blkg; in throtl_upgrade_state() local
1954 blkg_for_each_descendant_post(blkg, pos_css, td->queue->root_blkg) { in throtl_upgrade_state()
1955 struct throtl_grp *tg = blkg_to_tg(blkg); in throtl_upgrade_state()
2176 struct blkcg_gq *blkg = bio->bi_blkg; in blk_throtl_bio() local
2178 struct throtl_grp *tg = blkg_to_tg(blkg); in blk_throtl_bio()
2324 struct blkcg_gq *blkg; in blk_throtl_bio_endio() local
2332 blkg = bio->bi_blkg; in blk_throtl_bio_endio()
2333 if (!blkg) in blk_throtl_bio_endio()
2335 tg = blkg_to_tg(blkg); in blk_throtl_bio_endio()