Home
last modified time | relevance | path

Searched refs:blkcg (Results 1 – 15 of 15) sorted by relevance

/OK3568_Linux_fs/kernel/include/linux/
H A Dblk-cgroup.h49 struct blkcg { struct
103 struct blkcg *blkcg; member
113 struct blkcg *blkcg; member
147 struct request_queue *q, struct blkcg *blkcg);
177 extern struct blkcg blkcg_root;
181 struct blkcg_gq *blkg_lookup_slowpath(struct blkcg *blkcg,
195 void blkcg_print_blkgs(struct seq_file *sf, struct blkcg *blkcg,
209 int blkg_conf_prep(struct blkcg *blkcg, const struct blkcg_policy *pol,
230 static inline struct blkcg *css_to_blkcg(struct cgroup_subsys_state *css) in css_to_blkcg()
232 return css ? container_of(css, struct blkcg, css) : NULL; in css_to_blkcg()
[all …]
H A Dblktrace_api.h32 struct blkcg;
37 void __trace_note_message(struct blk_trace *, struct blkcg *blkcg, const char *fmt, ...);
H A Dbacking-dev.h178 void wb_blkcg_offline(struct blkcg *blkcg);
384 static inline void wb_blkcg_offline(struct blkcg *blkcg) in wb_blkcg_offline() argument
/OK3568_Linux_fs/kernel/block/
H A Dblk-cgroup.c48 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 …]
H A Dblk-ioprio.c72 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 …]
H A Dmq-deadline-cgroup.c36 return container_of(blkcg_to_cpd(pd->blkg->blkcg, &dd_blkcg_policy), in dd_blkcg_from_pd()
63 struct dd_blkcg *blkcg = dd_blkcg_from_pd(pd); in dd_pd_stat() local
67 for (prio = 0; prio < ARRAY_SIZE(blkcg->stats->stats); prio++) in dd_pd_stat()
71 ddcg_sum(blkcg, dispatched, prio) + in dd_pd_stat()
72 ddcg_sum(blkcg, merged, prio) - in dd_pd_stat()
73 ddcg_sum(blkcg, completed, prio), in dd_pd_stat()
74 ddcg_sum(blkcg, inserted, prio) - in dd_pd_stat()
75 ddcg_sum(blkcg, completed, prio), in dd_pd_stat()
76 ddcg_sum(blkcg, merged, prio)); in dd_pd_stat()
82 struct blkcg *blkcg) in dd_pd_alloc() argument
H A Dbfq-cgroup.c493 static struct bfq_group_data *blkcg_to_bfqgd(struct blkcg *blkcg) in blkcg_to_bfqgd() argument
495 return cpd_to_bfqgd(blkcg_to_cpd(blkcg, &blkcg_policy_bfq)); in blkcg_to_bfqgd()
522 struct blkcg *blkcg) in bfq_pd_alloc() argument
546 struct bfq_group_data *d = blkcg_to_bfqgd(blkg->blkcg); in bfq_pd_init()
620 bio_associate_blkg_from_css(bio, &blkg->blkcg->css); in bfq_bio_bfqg()
626 &bfqg_to_blkg(bfqd->root_group)->blkcg->css); in bfq_bio_bfqg()
766 serial_nr = bfqg_to_blkg(bfqg)->blkcg->css.serial_nr; in bfq_bic_update_cgroup()
986 struct blkcg *blkcg = css_to_blkcg(seq_css(sf)); in bfq_io_show_weight_legacy() local
987 struct bfq_group_data *bfqgd = blkcg_to_bfqgd(blkcg); in bfq_io_show_weight_legacy()
1010 struct blkcg *blkcg = css_to_blkcg(seq_css(sf)); in bfq_io_show_weight() local
[all …]
H A Dmq-deadline-main.c235 struct dd_blkcg *blkcg = next->elv.priv[0]; in dd_merged_requests() local
238 ddcg_count(blkcg, merged, ioprio_class); in dd_merged_requests()
376 struct dd_blkcg *blkcg; in __dd_dispatch_request() local
475 blkcg = rq->elv.priv[0]; in __dd_dispatch_request()
476 ddcg_count(blkcg, dispatched, ioprio_class); in __dd_dispatch_request()
721 struct dd_blkcg *blkcg; in dd_insert_request() local
740 blkcg = dd_blkcg_from_bio(rq->bio); in dd_insert_request()
741 ddcg_count(blkcg, inserted, ioprio_class); in dd_insert_request()
742 rq->elv.priv[0] = blkcg; in dd_insert_request()
816 struct dd_blkcg *blkcg = rq->elv.priv[0]; in dd_finish_request() local
[all …]
H A Dblk-iocost.c200 cgroup_path(iocg_to_blkg(iocg)->blkcg->css.cgroup, \
698 static struct ioc_cgrp *blkcg_to_iocc(struct blkcg *blkcg) in blkcg_to_iocc() argument
700 return container_of(blkcg_to_cpd(blkcg, &blkcg_policy_iocost), in blkcg_to_iocc()
1184 struct ioc_cgrp *iocc = blkcg_to_iocc(blkg->blkcg); in weight_updated()
1886 pr_cont_cgroup_path(iocg_to_blkg(iocg)->blkcg->css.cgroup); in transfer_surpluses()
2903 struct blkcg *blkcg) in ioc_pd_alloc() argument
2905 int levels = blkcg->css.cgroup->level + 1; in ioc_pd_alloc()
2946 iocg->level = blkg->blkcg->css.cgroup->level; in ioc_pd_init()
3030 struct blkcg *blkcg = css_to_blkcg(seq_css(sf)); in ioc_weight_show() local
3031 struct ioc_cgrp *iocc = blkcg_to_iocc(blkcg); in ioc_weight_show()
[all …]
H A Dblk-throttle.c312 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
1460 struct blkcg *blkcg = css_to_blkcg(of_css(of)); in tg_set_conf() local
1466 ret = blkg_conf_prep(blkcg, &blkcg_policy_throtl, buf, &ctx); in tg_set_conf()
1649 struct blkcg *blkcg = css_to_blkcg(of_css(of)); in tg_set_limit() local
1658 ret = blkg_conf_prep(blkcg, &blkcg_policy_throtl, buf, &ctx); in tg_set_limit()
1922 if (!list_empty(&tg_to_blkg(tg)->blkcg->css.children)) in throtl_can_upgrade()
2004 !list_empty(&tg_to_blkg(tg)->blkcg->css.children))) in throtl_tg_can_downgrade()
[all …]
H A Dblk-iolatency.c833 struct blkcg *blkcg = css_to_blkcg(of_css(of)); in iolatency_set_limit() local
842 ret = blkg_conf_prep(blkcg, &blkcg_policy_iolatency, buf, &ctx); in iolatency_set_limit()
956 struct blkcg *blkcg) in iolatency_pd_alloc() argument
H A Dbfq-iosched.h1079 bfqg_to_blkg(bfqq_group(bfqq))->blkcg, \
1086 bfqg_to_blkg(bfqg)->blkcg, fmt, ##args); \
/OK3568_Linux_fs/kernel/tools/cgroup/
H A Diocost_monitor.py64 def blkcg_name(blkcg): argument
65 return blkcg.css.cgroup.kn.name.string_().decode('utf-8')
67 def walk(self, blkcg, q_id, parent_path): argument
69 not (blkcg.css.flags.value_() & prog['CSS_ONLINE'].value_()):
72 name = BlkgIterator.blkcg_name(blkcg)
75 address=radix_tree_lookup(blkcg.blkg_tree.address_of_(), q_id))
82 blkcg.css.children.address_of_(), 'css.sibling'):
/OK3568_Linux_fs/kernel/mm/
H A Dbacking-dev.c385 struct blkcg *blkcg = css_to_blkcg(wb->blkcg_css); in cgwb_release_workfn() local
395 blkcg_unpin_online(blkcg); in cgwb_release_workfn()
432 struct blkcg *blkcg; in cgwb_create() local
440 blkcg = css_to_blkcg(blkcg_css); in cgwb_create()
442 blkcg_cgwb_list = &blkcg->cgwb_list; in cgwb_create()
495 blkcg_pin_online(blkcg); in cgwb_create()
661 void wb_blkcg_offline(struct blkcg *blkcg) in wb_blkcg_offline() argument
666 list_for_each_entry_safe(wb, next, &blkcg->cgwb_list, blkcg_node) in wb_blkcg_offline()
668 blkcg->cgwb_list.next = NULL; /* prevent new wb's */ in wb_blkcg_offline()
/OK3568_Linux_fs/kernel/kernel/trace/
H A Dblktrace.c148 void __trace_note_message(struct blk_trace *bt, struct blkcg *blkcg, in __trace_note_message() argument
174 blkcg = NULL; in __trace_note_message()
177 blkcg ? cgroup_id(blkcg->css.cgroup) : 1); in __trace_note_message()