Searched refs:blkcg (Results 1 – 7 of 7) sorted by relevance
/block/ |
D | blk-cgroup.c | 46 struct blkcg blkcg_root; 96 css_put(&blkg->blkcg->css); in __blkg_release() 151 static struct blkcg_gq *blkg_alloc(struct blkcg *blkcg, struct request_queue *q, in blkg_alloc() argument 174 blkg->blkcg = blkcg; in blkg_alloc() 188 pd = pol->pd_alloc_fn(gfp_mask, q, blkcg); in blkg_alloc() 204 struct blkcg_gq *blkg_lookup_slowpath(struct blkcg *blkcg, in blkg_lookup_slowpath() argument 215 blkg = radix_tree_lookup(&blkcg->blkg_tree, q->id); in blkg_lookup_slowpath() 219 rcu_assign_pointer(blkcg->blkg_hint, blkg); in blkg_lookup_slowpath() 232 static struct blkcg_gq *blkg_create(struct blkcg *blkcg, in blkg_create() argument 249 if (!css_tryget_online(&blkcg->css)) { in blkg_create() [all …]
|
D | blk-ioprio.c | 72 static struct ioprio_blkcg *blkcg_to_ioprio_blkcg(struct blkcg *blkcg) in blkcg_to_ioprio_blkcg() argument 74 return container_of(blkcg_to_cpd(blkcg, &ioprio_policy), in blkcg_to_ioprio_blkcg() 91 return blkcg_to_ioprio_blkcg(pd->blkg->blkcg); in ioprio_blkcg_from_bio() 96 struct ioprio_blkcg *blkcg = ioprio_blkcg_from_css(seq_css(sf)); in ioprio_show_prio_policy() local 98 seq_printf(sf, "%s\n", policy_name[blkcg->prio_policy]); in ioprio_show_prio_policy() 105 struct ioprio_blkcg *blkcg = ioprio_blkcg_from_css(of_css(of)); in ioprio_set_prio_policy() local 114 blkcg->prio_policy = ret; in ioprio_set_prio_policy() 120 ioprio_alloc_pd(gfp_t gfp, struct request_queue *q, struct blkcg *blkcg) in ioprio_alloc_pd() argument 140 struct ioprio_blkcg *blkcg; in ioprio_alloc_cpd() local 142 blkcg = kzalloc(sizeof(*blkcg), gfp); in ioprio_alloc_cpd() [all …]
|
D | bfq-cgroup.c | 495 static struct bfq_group_data *blkcg_to_bfqgd(struct blkcg *blkcg) in blkcg_to_bfqgd() argument 497 return cpd_to_bfqgd(blkcg_to_cpd(blkcg, &blkcg_policy_bfq)); in blkcg_to_bfqgd() 524 struct blkcg *blkcg) in bfq_pd_alloc() argument 548 struct bfq_group_data *d = blkcg_to_bfqgd(blkg->blkcg); in bfq_pd_init() 624 bio_associate_blkg_from_css(bio, &blkg->blkcg->css); in bfq_bio_bfqg() 630 &bfqg_to_blkg(bfqd->root_group)->blkcg->css); in bfq_bio_bfqg() 776 serial_nr = bfqg_to_blkg(bfqg)->blkcg->css.serial_nr; in bfq_bic_update_cgroup() 996 struct blkcg *blkcg = css_to_blkcg(seq_css(sf)); in bfq_io_show_weight_legacy() local 997 struct bfq_group_data *bfqgd = blkcg_to_bfqgd(blkcg); in bfq_io_show_weight_legacy() 1020 struct blkcg *blkcg = css_to_blkcg(seq_css(sf)); in bfq_io_show_weight() local [all …]
|
D | blk-iocost.c | 200 cgroup_path(iocg_to_blkg(iocg)->blkcg->css.cgroup, \ 700 static struct ioc_cgrp *blkcg_to_iocc(struct blkcg *blkcg) in blkcg_to_iocc() argument 702 return container_of(blkcg_to_cpd(blkcg, &blkcg_policy_iocost), in blkcg_to_iocc() 1239 struct ioc_cgrp *iocc = blkcg_to_iocc(blkg->blkcg); in weight_updated() 1948 pr_cont_cgroup_path(iocg_to_blkg(iocg)->blkcg->css.cgroup); in transfer_surpluses() 2948 struct blkcg *blkcg) in ioc_pd_alloc() argument 2950 int levels = blkcg->css.cgroup->level + 1; in ioc_pd_alloc() 2991 iocg->level = blkg->blkcg->css.cgroup->level; in ioc_pd_init() 3070 struct blkcg *blkcg = css_to_blkcg(seq_css(sf)); in ioc_weight_show() local 3071 struct ioc_cgrp *iocc = blkcg_to_iocc(blkcg); in ioc_weight_show() [all …]
|
D | blk-throttle.c | 312 if (!list_empty(&blkg->blkcg->css.children) || in tg_bps_limit() 342 if (!list_empty(&blkg->blkcg->css.children) || in tg_iops_limit() 382 tg_to_blkg(__tg)->blkcg, "throtl " fmt, ##args);\ 492 struct blkcg *blkcg) in throtl_pd_alloc() argument 1468 struct blkcg *blkcg = css_to_blkcg(of_css(of)); in tg_set_conf() local 1474 ret = blkg_conf_prep(blkcg, &blkcg_policy_throtl, buf, &ctx); in tg_set_conf() 1657 struct blkcg *blkcg = css_to_blkcg(of_css(of)); in tg_set_limit() local 1666 ret = blkg_conf_prep(blkcg, &blkcg_policy_throtl, buf, &ctx); in tg_set_limit() 1930 if (!list_empty(&tg_to_blkg(tg)->blkcg->css.children)) in throtl_can_upgrade() 2012 !list_empty(&tg_to_blkg(tg)->blkcg->css.children))) in throtl_tg_can_downgrade() [all …]
|
D | blk-iolatency.c | 837 struct blkcg *blkcg = css_to_blkcg(of_css(of)); in iolatency_set_limit() local 846 ret = blkg_conf_prep(blkcg, &blkcg_policy_iolatency, buf, &ctx); in iolatency_set_limit() 960 struct blkcg *blkcg) in iolatency_pd_alloc() argument
|
D | bfq-iosched.h | 1102 bfqg_to_blkg(bfqq_group(bfqq))->blkcg, \ 1109 bfqg_to_blkg(bfqg)->blkcg, fmt, ##args); \
|