| /linux-6.15/block/ |
| H A D | blk-ioprio.c | 62 static struct ioprio_blkcg *blkcg_to_ioprio_blkcg(struct blkcg *blkcg) in blkcg_to_ioprio_blkcg() argument 94 blkcg->prio_policy = ret; in ioprio_set_prio_policy() 100 struct ioprio_blkcg *blkcg; in ioprio_alloc_cpd() local 102 blkcg = kzalloc(sizeof(*blkcg), gfp); in ioprio_alloc_cpd() 103 if (!blkcg) in ioprio_alloc_cpd() 105 blkcg->prio_policy = POLICY_NO_CHANGE; in ioprio_alloc_cpd() 106 return &blkcg->cpd; in ioprio_alloc_cpd() 111 struct ioprio_blkcg *blkcg = container_of(cpd, typeof(*blkcg), cpd); in ioprio_free_cpd() local 113 kfree(blkcg); in ioprio_free_cpd() 135 struct ioprio_blkcg *blkcg = blkcg_to_ioprio_blkcg(bio->bi_blkg->blkcg); in blkcg_set_ioprio() local [all …]
|
| H A D | blk-cgroup.c | 172 struct blkcg *blkcg = blkg->blkcg; in __blkg_release() local 324 blkg->blkcg = blkcg; in blkg_alloc() 530 struct blkcg *blkcg = blkg->blkcg; in blkg_destroy() local 585 struct blkcg *blkcg = blkg->blkcg; in blkg_destroy_all() local 1430 struct blkcg *blkcg; in blkcg_css_alloc() local 1464 cpd->blkcg = blkcg; in blkcg_css_alloc() 1691 struct blkcg *blkcg = blkg->blkcg; in blkcg_activate_policy() local 1738 struct blkcg *blkcg = blkg->blkcg; in blkcg_deactivate_policy() local 1760 struct blkcg *blkcg; in blkcg_free_all_cpd() local 1779 struct blkcg *blkcg; in blkcg_policy_register() local [all …]
|
| H A D | blk-cgroup.h | 61 struct blkcg *blkcg; member 94 struct blkcg { struct 154 struct blkcg *blkcg; member 163 struct blkcg *blkcg, gfp_t gfp); 206 void blkcg_print_blkgs(struct seq_file *sf, struct blkcg *blkcg, 223 int blkg_conf_prep(struct blkcg *blkcg, const struct blkcg_policy *pol, 255 static inline struct blkcg_gq *blkg_lookup(struct blkcg *blkcg, in blkg_lookup() argument 260 if (blkcg == &blkcg_root) in blkg_lookup() 287 static inline struct blkcg_policy_data *blkcg_to_cpd(struct blkcg *blkcg, in blkcg_to_cpd() argument 290 return blkcg ? blkcg->cpd[pol->plid] : NULL; in blkcg_to_cpd() [all …]
|
| H 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 strscpy(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()
|
| H A D | bfq-cgroup.c | 488 static struct bfq_group_data *blkcg_to_bfqgd(struct blkcg *blkcg) in blkcg_to_bfqgd() argument 511 struct blkcg *blkcg, gfp_t gfp) in bfq_pd_alloc() argument 617 &bfqg_to_blkg(bfqd->root_group)->blkcg->css); in bfq_bio_bfqg() 780 serial_nr = bfqg_to_blkg(bfqg)->blkcg->css.serial_nr; in bfq_bic_update_cgroup() 950 struct blkcg *blkcg = css_to_blkcg(seq_css(sf)); in bfq_io_show_weight_legacy() local 951 struct bfq_group_data *bfqgd = blkcg_to_bfqgd(blkcg); in bfq_io_show_weight_legacy() 974 struct blkcg *blkcg = css_to_blkcg(seq_css(sf)); in bfq_io_show_weight() local 1020 struct blkcg *blkcg = css_to_blkcg(css); in bfq_io_set_weight_legacy() local 1029 spin_lock_irq(&blkcg->lock); in bfq_io_set_weight_legacy() 1037 spin_unlock_irq(&blkcg->lock); in bfq_io_set_weight_legacy() [all …]
|
| H A D | blk-iocost.c | 694 static struct ioc_cgrp *blkcg_to_iocc(struct blkcg *blkcg) in blkcg_to_iocc() argument 2965 struct blkcg *blkcg, gfp_t gfp) in ioc_pd_alloc() argument 2967 int levels = blkcg->css.cgroup->level + 1; in ioc_pd_alloc() 3008 iocg->level = blkg->blkcg->css.cgroup->level; in ioc_pd_init() 3086 struct blkcg *blkcg = css_to_blkcg(seq_css(sf)); in ioc_weight_show() local 3098 struct blkcg *blkcg = css_to_blkcg(of_css(of)); in ioc_weight_write() local 3115 spin_lock_irq(&blkcg->lock); in ioc_weight_write() 3127 spin_unlock_irq(&blkcg->lock); in ioc_weight_write() 3193 struct blkcg *blkcg = css_to_blkcg(seq_css(sf)); in ioc_qos_show() local 3195 blkcg_print_blkgs(sf, blkcg, ioc_qos_prfill, in ioc_qos_show() [all …]
|
| H A D | blk-throttle.c | 129 &tg_to_blkg(__tg)->blkcg->css, "throtl " fmt, ##args);\ 238 struct blkcg *blkcg, gfp_t gfp) in throtl_pd_alloc() argument 1251 struct blkcg *blkcg = css_to_blkcg(of_css(of)); in tg_set_conf() local 1269 ret = blkg_conf_prep(blkcg, &blkcg_policy_throtl, &ctx); in tg_set_conf() 1435 struct blkcg *blkcg = css_to_blkcg(of_css(of)); in tg_set_limit() local 1453 ret = blkg_conf_prep(blkcg, &blkcg_policy_throtl, &ctx); in tg_set_limit()
|
| H A D | blk-iolatency.c | 832 struct blkcg *blkcg = css_to_blkcg(of_css(of)); in iolatency_set_limit() local 857 ret = blkg_conf_prep(blkcg, &blkcg_policy_iolatency, &ctx); in iolatency_set_limit() 968 struct blkcg *blkcg, gfp_t gfp) in iolatency_pd_alloc() argument
|
| H A D | bfq-iosched.h | 1184 &bfqg_to_blkg(bfqq_group(bfqq))->blkcg->css, \
|
| H A D | bfq-iosched.c | 611 depth = bfqg_to_blkg(bfqq_group(bfqq))->blkcg->css.cgroup->level + 1; in bfqq_request_over_limit()
|
| /linux-6.15/tools/cgroup/ |
| H 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.15/Documentation/ABI/testing/ |
| H A D | sysfs-class-fc | 6 identifier in the blkcg associated with a cgroup id. The
|