Home
last modified time | relevance | path

Searched refs:blkg (Results 1 – 5 of 5) sorted by relevance

/block/
Dblk-cgroup.c65 static void blkg_free(struct blkcg_gq *blkg) in blkg_free() argument
69 if (!blkg) in blkg_free()
73 if (blkg->pd[i]) in blkg_free()
74 blkcg_policy[i]->pd_free_fn(blkg->pd[i]); in blkg_free()
76 if (blkg->blkcg != &blkcg_root) in blkg_free()
77 blk_exit_rl(blkg->q, &blkg->rl); in blkg_free()
79 blkg_rwstat_exit(&blkg->stat_ios); in blkg_free()
80 blkg_rwstat_exit(&blkg->stat_bytes); in blkg_free()
81 kfree(blkg); in blkg_free()
95 struct blkcg_gq *blkg; in blkg_alloc() local
[all …]
Dbfq-cgroup.c171 static struct bfq_group *blkg_to_bfqg(struct blkcg_gq *blkg) in blkg_to_bfqg() argument
173 return pd_to_bfqg(blkg_to_pd(blkg, &blkcg_policy_bfq)); in blkg_to_bfqg()
431 struct blkcg_gq *blkg = pd_to_blkg(pd); in bfq_pd_init() local
432 struct bfq_group *bfqg = blkg_to_bfqg(blkg); in bfq_pd_init()
433 struct bfq_data *bfqd = blkg->q->elevator->elevator_data; in bfq_pd_init()
435 struct bfq_group_data *d = blkcg_to_bfqgd(blkg->blkcg); in bfq_pd_init()
476 struct blkcg_gq *blkg; in bfq_lookup_bfqg() local
478 blkg = blkg_lookup(blkcg, bfqd->queue); in bfq_lookup_bfqg()
479 if (likely(blkg)) in bfq_lookup_bfqg()
480 return blkg_to_bfqg(blkg); in bfq_lookup_bfqg()
[all …]
Dblk-throttle.c235 static inline struct throtl_grp *blkg_to_tg(struct blkcg_gq *blkg) in blkg_to_tg() argument
237 return pd_to_tg(blkg_to_pd(blkg, &blkcg_policy_throtl)); in blkg_to_tg()
297 struct blkcg_gq *blkg = tg_to_blkg(tg); in tg_bps_limit() local
301 if (cgroup_subsys_on_dfl(io_cgrp_subsys) && !blkg->parent) in tg_bps_limit()
308 if (!list_empty(&blkg->blkcg->css.children) || in tg_bps_limit()
327 struct blkcg_gq *blkg = tg_to_blkg(tg); in tg_iops_limit() local
331 if (cgroup_subsys_on_dfl(io_cgrp_subsys) && !blkg->parent) in tg_iops_limit()
338 if (!list_empty(&blkg->blkcg->css.children) || in tg_iops_limit()
523 struct blkcg_gq *blkg = tg_to_blkg(tg); in throtl_pd_init() local
524 struct throtl_data *td = blkg->q->td; in throtl_pd_init()
[all …]
Dcfq-iosched.c627 static inline struct cfq_group *blkg_to_cfqg(struct blkcg_gq *blkg) in blkg_to_cfqg() argument
629 return pd_to_cfqg(blkg_to_pd(blkg, &blkcg_policy_cfq)); in blkg_to_cfqg()
1646 struct cfq_group_data *cgd = blkcg_to_cfqgd(pd->blkg->blkcg); in cfq_pd_init()
1695 struct blkcg_gq *blkg; in cfq_lookup_cfqg() local
1697 blkg = blkg_lookup(blkcg, cfqd->queue); in cfq_lookup_cfqg()
1698 if (likely(blkg)) in cfq_lookup_cfqg()
1699 return blkg_to_cfqg(blkg); in cfq_lookup_cfqg()
1814 cfqg = blkg_to_cfqg(ctx.blkg); in __cfqg_set_weight_device()
1851 struct blkcg_gq *blkg; in __cfq_set_weight() local
1870 hlist_for_each_entry(blkg, &blkcg->blkg_list, blkcg_node) { in __cfq_set_weight()
[all …]
Dblk-core.c76 clear_wb_congested(rl->blkg->wb_congested, sync); in blk_clear_congested()
90 set_wb_congested(rl->blkg->wb_congested, sync); in blk_set_congested()