Lines Matching refs:blkg

239 static inline struct throtl_grp *blkg_to_tg(struct blkcg_gq *blkg)  in blkg_to_tg()  argument
241 return pd_to_tg(blkg_to_pd(blkg, &blkcg_policy_throtl)); in blkg_to_tg()
301 struct blkcg_gq *blkg = tg_to_blkg(tg); in tg_bps_limit() local
305 if (cgroup_subsys_on_dfl(io_cgrp_subsys) && !blkg->parent) in tg_bps_limit()
312 if (!list_empty(&blkg->blkcg->css.children) || in tg_bps_limit()
331 struct blkcg_gq *blkg = tg_to_blkg(tg); in tg_iops_limit() local
335 if (cgroup_subsys_on_dfl(io_cgrp_subsys) && !blkg->parent) in tg_iops_limit()
342 if (!list_empty(&blkg->blkcg->css.children) || in tg_iops_limit()
542 struct blkcg_gq *blkg = tg_to_blkg(tg); in throtl_pd_init() local
543 struct throtl_data *td = blkg->q->td; in throtl_pd_init()
560 if (cgroup_subsys_on_dfl(io_cgrp_subsys) && blkg->parent) in throtl_pd_init()
561 sq->parent_sq = &blkg_to_tg(blkg->parent)->service_queue; in throtl_pd_init()
596 struct blkcg_gq *blkg; in blk_throtl_update_limit_valid() local
600 blkg_for_each_descendant_post(blkg, pos_css, td->queue->root_blkg) { in blk_throtl_update_limit_valid()
601 struct throtl_grp *tg = blkg_to_tg(blkg); in blk_throtl_update_limit_valid()
1405 struct blkcg_gq *blkg; in tg_conf_updated() local
1419 blkg_for_each_descendant_pre(blkg, pos_css, in tg_conf_updated()
1421 struct throtl_grp *this_tg = blkg_to_tg(blkg); in tg_conf_updated()
1426 if (!cgroup_subsys_on_dfl(io_cgrp_subsys) || !blkg->parent || in tg_conf_updated()
1427 !blkg->parent->parent) in tg_conf_updated()
1429 parent_tg = blkg_to_tg(blkg->parent); in tg_conf_updated()
1476 tg = blkg_to_tg(ctx.blkg); in tg_set_conf()
1580 const char *dname = blkg_dev_name(pd->blkg); in tg_prfill_limit()
1662 tg = blkg_to_tg(ctx.blkg); in tg_set_limit()
1908 struct blkcg_gq *blkg; in throtl_can_upgrade() local
1917 blkg_for_each_descendant_post(blkg, pos_css, td->queue->root_blkg) { in throtl_can_upgrade()
1918 struct throtl_grp *tg = blkg_to_tg(blkg); in throtl_can_upgrade()
1956 struct blkcg_gq *blkg; in throtl_upgrade_state() local
1963 blkg_for_each_descendant_post(blkg, pos_css, td->queue->root_blkg) { in throtl_upgrade_state()
1964 struct throtl_grp *tg = blkg_to_tg(blkg); in throtl_upgrade_state()
2186 struct blkcg_gq *blkg = bio->bi_blkg; in blk_throtl_charge_bio_split() local
2187 struct throtl_grp *parent = blkg_to_tg(blkg); in blk_throtl_charge_bio_split()
2206 struct blkcg_gq *blkg = bio->bi_blkg; in blk_throtl_bio() local
2208 struct throtl_grp *tg = blkg_to_tg(blkg); in blk_throtl_bio()
2354 struct blkcg_gq *blkg; in blk_throtl_bio_endio() local
2362 blkg = bio->bi_blkg; in blk_throtl_bio_endio()
2363 if (!blkg) in blk_throtl_bio_endio()
2365 tg = blkg_to_tg(blkg); in blk_throtl_bio_endio()