/linux-6.3-rc2/block/ |
A D | blk-cgroup.c | 275 blkg->blkcg = blkcg; in blkg_alloc() 475 struct blkcg *blkcg = blkg->blkcg; in blkg_destroy() local 529 struct blkcg *blkcg = blkg->blkcg; in blkg_destroy_all() local 1216 struct blkcg *blkcg; in blkcg_css_alloc() local 1250 cpd->blkcg = blkcg; in blkcg_css_alloc() 1510 struct blkcg *blkcg = blkg->blkcg; in blkcg_activate_policy() local 1551 struct blkcg *blkcg = blkg->blkcg; in blkcg_deactivate_policy() local 1573 struct blkcg *blkcg; in blkcg_free_all_cpd() local 1592 struct blkcg *blkcg; in blkcg_policy_register() local 1842 struct blkcg *blkcg; in blkcg_maybe_throttle_current() local [all …]
|
A D | blk-ioprio.c | 72 static struct ioprio_blkcg *blkcg_to_ioprio_blkcg(struct blkcg *blkcg) in blkcg_to_ioprio_blkcg() argument 114 blkcg->prio_policy = ret; in ioprio_set_prio_policy() 119 ioprio_alloc_pd(struct gendisk *disk, struct blkcg *blkcg, gfp_t gfp) in ioprio_alloc_pd() argument 139 struct ioprio_blkcg *blkcg; in ioprio_alloc_cpd() local 141 blkcg = kzalloc(sizeof(*blkcg), gfp); in ioprio_alloc_cpd() 142 if (!blkcg) in ioprio_alloc_cpd() 144 blkcg->prio_policy = POLICY_NO_CHANGE; in ioprio_alloc_cpd() 145 return &blkcg->cpd; in ioprio_alloc_cpd() 150 struct ioprio_blkcg *blkcg = container_of(cpd, typeof(*blkcg), cpd); in ioprio_free_cpd() local 152 kfree(blkcg); in ioprio_free_cpd() [all …]
|
A D | blk-cgroup.h | 60 struct blkcg *blkcg; member 92 struct blkcg { struct 150 struct blkcg *blkcg; member 159 struct blkcg *blkcg, gfp_t gfp); 203 void blkcg_print_blkgs(struct seq_file *sf, struct blkcg *blkcg, 217 int blkg_conf_prep(struct blkcg *blkcg, const struct blkcg_policy *pol, 246 static inline struct blkcg_gq *blkg_lookup(struct blkcg *blkcg, in blkg_lookup() argument 253 if (blkcg == &blkcg_root) in blkg_lookup() 279 static inline struct blkcg_policy_data *blkcg_to_cpd(struct blkcg *blkcg, in blkcg_to_cpd() argument 282 return blkcg ? blkcg->cpd[pol->plid] : NULL; in blkcg_to_cpd() [all …]
|
A D | blk-cgroup-fc-appid.c | 15 struct blkcg *blkcg; in blkcg_set_fc_appid() local 29 blkcg = css_to_blkcg(css); in blkcg_set_fc_appid() 37 strlcpy(blkcg->fc_app_id, app_id, app_id_len); in blkcg_set_fc_appid() 53 if (!bio->bi_blkg || bio->bi_blkg->blkcg->fc_app_id[0] == '\0') in blkcg_get_fc_appid() 55 return bio->bi_blkg->blkcg->fc_app_id; in blkcg_get_fc_appid()
|
A D | bfq-cgroup.c | 488 static struct bfq_group_data *blkcg_to_bfqgd(struct blkcg *blkcg) in blkcg_to_bfqgd() argument 517 struct blkcg *blkcg, gfp_t gfp) in bfq_pd_alloc() argument 623 &bfqg_to_blkg(bfqd->root_group)->blkcg->css); in bfq_bio_bfqg() 791 serial_nr = bfqg_to_blkg(bfqg)->blkcg->css.serial_nr; in bfq_bic_update_cgroup() 1012 struct blkcg *blkcg = css_to_blkcg(seq_css(sf)); in bfq_io_show_weight_legacy() local 1013 struct bfq_group_data *bfqgd = blkcg_to_bfqgd(blkcg); in bfq_io_show_weight_legacy() 1036 struct blkcg *blkcg = css_to_blkcg(seq_css(sf)); in bfq_io_show_weight() local 1082 struct blkcg *blkcg = css_to_blkcg(css); in bfq_io_set_weight_legacy() local 1091 spin_lock_irq(&blkcg->lock); in bfq_io_set_weight_legacy() 1099 spin_unlock_irq(&blkcg->lock); in bfq_io_set_weight_legacy() [all …]
|
A D | blk-iocost.c | 694 static struct ioc_cgrp *blkcg_to_iocc(struct blkcg *blkcg) in blkcg_to_iocc() argument 2941 struct blkcg *blkcg, gfp_t gfp) in ioc_pd_alloc() argument 2943 int levels = blkcg->css.cgroup->level + 1; in ioc_pd_alloc() 2985 iocg->level = blkg->blkcg->css.cgroup->level; in ioc_pd_init() 3063 struct blkcg *blkcg = css_to_blkcg(seq_css(sf)); in ioc_weight_show() local 3075 struct blkcg *blkcg = css_to_blkcg(of_css(of)); in ioc_weight_write() local 3092 spin_lock_irq(&blkcg->lock); in ioc_weight_write() 3104 spin_unlock_irq(&blkcg->lock); in ioc_weight_write() 3166 struct blkcg *blkcg = css_to_blkcg(seq_css(sf)); in ioc_qos_show() local 3168 blkcg_print_blkgs(sf, blkcg, ioc_qos_prfill, in ioc_qos_show() [all …]
|
A D | blk-throttle.c | 160 if (!list_empty(&blkg->blkcg->css.children) || in tg_bps_limit() 190 if (!list_empty(&blkg->blkcg->css.children) || in tg_iops_limit() 230 &tg_to_blkg(__tg)->blkcg->css, "throtl " fmt, ##args);\ 339 struct blkcg *blkcg, gfp_t gfp) in throtl_pd_alloc() argument 1365 struct blkcg *blkcg = css_to_blkcg(of_css(of)); in tg_set_conf() local 1371 ret = blkg_conf_prep(blkcg, &blkcg_policy_throtl, buf, &ctx); in tg_set_conf() 1555 struct blkcg *blkcg = css_to_blkcg(of_css(of)); in tg_set_limit() local 1564 ret = blkg_conf_prep(blkcg, &blkcg_policy_throtl, buf, &ctx); in tg_set_limit() 1879 if (!list_empty(&tg_to_blkg(tg)->blkcg->css.children)) in throtl_can_upgrade() 1960 !list_empty(&tg_to_blkg(tg)->blkcg->css.children))) in throtl_tg_can_downgrade() [all …]
|
A D | blk-iolatency.c | 830 struct blkcg *blkcg = css_to_blkcg(of_css(of)); in iolatency_set_limit() local 839 ret = blkg_conf_prep(blkcg, &blkcg_policy_iolatency, buf, &ctx); in iolatency_set_limit() 950 struct blkcg *blkcg, gfp_t gfp) in iolatency_pd_alloc() argument
|
A D | bfq-iosched.h | 1186 &bfqg_to_blkg(bfqq_group(bfqq))->blkcg->css, \ 1192 &bfqg_to_blkg(bfqg)->blkcg->css, fmt, ##args); \
|
A D | bfq-iosched.c | 604 depth = bfqg_to_blkg(bfqq_group(bfqq))->blkcg->css.cgroup->level + 1; in bfqq_request_over_limit()
|
/linux-6.3-rc2/tools/cgroup/ |
A D | iocost_monitor.py | 69 def blkcg_name(blkcg): argument 70 return blkcg.css.cgroup.kn.name.string_().decode('utf-8') 72 def walk(self, blkcg, q_id, parent_path): argument 74 not (blkcg.css.flags.value_() & prog['CSS_ONLINE'].value_()): 77 name = BlkgIterator.blkcg_name(blkcg) 80 address=radix_tree_lookup(blkcg.blkg_tree.address_of_(), q_id)) 87 blkcg.css.children.address_of_(), 'css.sibling'):
|
/linux-6.3-rc2/Documentation/ABI/testing/ |
A D | sysfs-class-fc | 6 identifier in the blkcg associated with a cgroup id. The
|