Lines Matching refs:blkg
185 static inline struct throtl_grp *blkg_to_tg(struct blkcg_gq *blkg) in blkg_to_tg() argument
187 return pd_to_tg(blkg_to_pd(blkg, &blkcg_policy_throtl)); in blkg_to_tg()
406 static void throtl_pd_init(struct blkcg_gq *blkg) in throtl_pd_init() argument
408 struct throtl_grp *tg = blkg_to_tg(blkg); in throtl_pd_init()
409 struct throtl_data *td = blkg->q->td; in throtl_pd_init()
429 if (cgroup_on_dfl(blkg->blkcg->css.cgroup) && blkg->parent) in throtl_pd_init()
430 parent_sq = &blkg_to_tg(blkg->parent)->service_queue; in throtl_pd_init()
473 static void throtl_pd_online(struct blkcg_gq *blkg) in throtl_pd_online() argument
479 tg_update_has_rules(blkg_to_tg(blkg)); in throtl_pd_online()
482 static void throtl_pd_exit(struct blkcg_gq *blkg) in throtl_pd_exit() argument
484 struct throtl_grp *tg = blkg_to_tg(blkg); in throtl_pd_exit()
496 static void throtl_pd_reset_stats(struct blkcg_gq *blkg) in throtl_pd_reset_stats() argument
498 struct throtl_grp *tg = blkg_to_tg(blkg); in throtl_pd_reset_stats()
538 struct blkcg_gq *blkg; in throtl_lookup_create_tg() local
540 blkg = blkg_lookup_create(blkcg, q); in throtl_lookup_create_tg()
543 if (!IS_ERR(blkg)) in throtl_lookup_create_tg()
544 tg = blkg_to_tg(blkg); in throtl_lookup_create_tg()
959 static void throtl_update_dispatch_stats(struct blkcg_gq *blkg, u64 bytes, in throtl_update_dispatch_stats() argument
962 struct throtl_grp *tg = blkg_to_tg(blkg); in throtl_update_dispatch_stats()
1359 struct blkcg_gq *blkg; in tg_set_conf() local
1367 tg = blkg_to_tg(ctx.blkg); in tg_set_conf()
1390 blkg_for_each_descendant_pre(blkg, pos_css, ctx.blkg) in tg_set_conf()
1391 tg_update_has_rules(blkg_to_tg(blkg)); in tg_set_conf()
1628 struct blkcg_gq *blkg; in blk_throtl_drain() local
1642 blkg_for_each_descendant_post(blkg, pos_css, td->queue->root_blkg) in blk_throtl_drain()
1643 tg_drain_bios(&blkg_to_tg(blkg)->service_queue); in blk_throtl_drain()