Searched refs:blkcg (Results 1 – 4 of 4) sorted by relevance
/block/ |
D | blk-cgroup.c | 29 struct blkcg blkcg_root = { .cfq_weight = 2 * CFQ_WEIGHT_DEFAULT, 69 static struct blkcg_gq *blkg_alloc(struct blkcg *blkcg, struct request_queue *q, in blkg_alloc() argument 82 blkg->blkcg = blkcg; in blkg_alloc() 86 if (blkcg != &blkcg_root) { in blkg_alloc() 127 struct blkcg_gq *__blkg_lookup(struct blkcg *blkcg, struct request_queue *q, in __blkg_lookup() argument 132 blkg = rcu_dereference(blkcg->blkg_hint); in __blkg_lookup() 142 blkg = radix_tree_lookup(&blkcg->blkg_tree, q->id); in __blkg_lookup() 146 rcu_assign_pointer(blkcg->blkg_hint, blkg); in __blkg_lookup() 163 struct blkcg_gq *blkg_lookup(struct blkcg *blkcg, struct request_queue *q) in blkg_lookup() argument 169 return __blkg_lookup(blkcg, q, false); in blkg_lookup() [all …]
|
D | blk-cgroup.h | 45 struct blkcg { struct 96 struct blkcg *blkcg; member 136 extern struct blkcg blkcg_root; 138 struct blkcg_gq *blkg_lookup(struct blkcg *blkcg, struct request_queue *q); 139 struct blkcg_gq *blkg_lookup_create(struct blkcg *blkcg, 153 void blkcg_print_blkgs(struct seq_file *sf, struct blkcg *blkcg, 175 int blkg_conf_prep(struct blkcg *blkcg, const struct blkcg_policy *pol, 180 static inline struct blkcg *css_to_blkcg(struct cgroup_subsys_state *css) in css_to_blkcg() 182 return css ? container_of(css, struct blkcg, css) : NULL; in css_to_blkcg() 185 static inline struct blkcg *task_blkcg(struct task_struct *tsk) in task_blkcg() [all …]
|
D | blk-throttle.c | 429 if (cgroup_on_dfl(blkg->blkcg->css.cgroup) && blkg->parent) in throtl_pd_init() 513 struct blkcg *blkcg) in throtl_lookup_tg() argument 519 if (blkcg == &blkcg_root) in throtl_lookup_tg() 522 return blkg_to_tg(blkg_lookup(blkcg, td->queue)); in throtl_lookup_tg() 526 struct blkcg *blkcg) in throtl_lookup_create_tg() argument 535 if (blkcg == &blkcg_root) { in throtl_lookup_create_tg() 540 blkg = blkg_lookup_create(blkcg, q); in throtl_lookup_create_tg() 1355 struct blkcg *blkcg = css_to_blkcg(of_css(of)); in tg_set_conf() local 1363 ret = blkg_conf_prep(blkcg, &blkcg_policy_throtl, buf, &ctx); in tg_set_conf() 1487 struct blkcg *blkcg; in blk_throtl_bio() local [all …]
|
D | cfq-iosched.c | 1552 cfqg->weight = blkg->blkcg->cfq_weight; in cfq_pd_init() 1553 cfqg->leaf_weight = blkg->blkcg->cfq_leaf_weight; in cfq_pd_init() 1608 struct blkcg *blkcg) in cfq_lookup_create_cfqg() argument 1614 if (blkcg == &blkcg_root) { in cfq_lookup_create_cfqg() 1619 blkg = blkg_lookup_create(blkcg, q); in cfq_lookup_create_cfqg() 1690 struct blkcg *blkcg = css_to_blkcg(of_css(of)); in __cfqg_set_weight_device() local 1695 ret = blkg_conf_prep(blkcg, &blkcg_policy_cfq, buf, &ctx); in __cfqg_set_weight_device() 1704 cfqg->new_weight = ctx.v ?: blkcg->cfq_weight; in __cfqg_set_weight_device() 1707 cfqg->new_leaf_weight = ctx.v ?: blkcg->cfq_leaf_weight; in __cfqg_set_weight_device() 1731 struct blkcg *blkcg = css_to_blkcg(css); in __cfq_set_weight() local [all …]
|