Lines Matching refs:blkg
63 * It's also used to track the reference counts on blkg's. A qnode always
66 * queued and decrementing when dequeued is enough to keep the whole blkg
240 static inline struct throtl_grp *blkg_to_tg(struct blkcg_gq *blkg)
242 return pd_to_tg(blkg_to_pd(blkg, &blkcg_policy_throtl));
302 struct blkcg_gq *blkg = tg_to_blkg(tg);
306 if (cgroup_subsys_on_dfl(io_cgrp_subsys) && !blkg->parent)
313 if (!list_empty(&blkg->blkcg->css.children) ||
332 struct blkcg_gq *blkg = tg_to_blkg(tg);
336 if (cgroup_subsys_on_dfl(io_cgrp_subsys) && !blkg->parent)
343 if (!list_empty(&blkg->blkcg->css.children) ||
543 struct blkcg_gq *blkg = tg_to_blkg(tg);
544 struct throtl_data *td = blkg->q->td;
561 if (cgroup_subsys_on_dfl(io_cgrp_subsys) && blkg->parent)
562 sq->parent_sq = &blkg_to_tg(blkg->parent)->service_queue;
597 struct blkcg_gq *blkg;
601 blkg_for_each_descendant_post(blkg, pos_css, td->queue->root_blkg) {
602 struct throtl_grp *tg = blkg_to_tg(blkg);
1406 struct blkcg_gq *blkg;
1421 blkg_for_each_descendant_pre(blkg, pos_css,
1423 struct throtl_grp *this_tg = blkg_to_tg(blkg);
1428 if (!cgroup_subsys_on_dfl(io_cgrp_subsys) || !blkg->parent ||
1429 !blkg->parent->parent)
1431 parent_tg = blkg_to_tg(blkg->parent);
1508 tg = blkg_to_tg(ctx.blkg);
1613 const char *dname = blkg_dev_name(pd->blkg);
1699 tg = blkg_to_tg(ctx.blkg);
1945 struct blkcg_gq *blkg;
1954 blkg_for_each_descendant_post(blkg, pos_css, td->queue->root_blkg) {
1955 struct throtl_grp *tg = blkg_to_tg(blkg);
1993 struct blkcg_gq *blkg;
2000 blkg_for_each_descendant_post(blkg, pos_css, td->queue->root_blkg) {
2001 struct throtl_grp *tg = blkg_to_tg(blkg);
2223 struct blkcg_gq *blkg = bio->bi_blkg;
2224 struct throtl_grp *parent = blkg_to_tg(blkg);
2243 struct blkcg_gq *blkg = bio->bi_blkg;
2245 struct throtl_grp *tg = blkg_to_tg(blkg);
2391 struct blkcg_gq *blkg;
2399 blkg = bio->bi_blkg;
2400 if (!blkg)
2402 tg = blkg_to_tg(blkg);