Lines Matching refs:blkcg
60 struct blkcg *blkcg;
68 /* is this blkg online? protected by both blkcg and q locks */
93 struct blkcg {
119 static inline struct blkcg *css_to_blkcg(struct cgroup_subsys_state *css)
121 return css ? container_of(css, struct blkcg, css) : NULL;
125 * A blkcg_gq (blkg) is association between a block cgroup (blkcg) and a
126 * request_queue (q). This is used by blkcg policies which need to track
127 * information per blkcg - q pair.
129 * There can be multiple active blkcg policies and each blkg:policy pair is
143 * Policies that need to keep per-blkcg data which is independent from any
147 * cpd_init() is invoked to let each policy handle per-blkcg data.
150 /* the blkcg and policy id this per-policy data belongs to */
151 struct blkcg *blkcg;
160 struct blkcg *blkcg, gfp_t gfp);
188 extern struct blkcg blkcg_root;
202 void blkcg_print_blkgs(struct seq_file *sf, struct blkcg *blkcg,
218 int blkg_conf_prep(struct blkcg *blkcg, const struct blkcg_policy *pol,
239 * blkg_lookup - lookup blkg for the specified blkcg - q pair
240 * @blkcg: blkcg of interest
243 * Lookup blkg for the @blkcg - @q pair.
247 static inline struct blkcg_gq *blkg_lookup(struct blkcg *blkcg,
252 if (blkcg == &blkcg_root)
255 blkg = rcu_dereference_check(blkcg->blkg_hint,
260 blkg = radix_tree_lookup(&blkcg->blkg_tree, q->id);
279 static inline struct blkcg_policy_data *blkcg_to_cpd(struct blkcg *blkcg,
282 return blkcg ? blkcg->cpd[pol->plid] : NULL;
296 static inline struct blkcg *cpd_to_blkcg(struct blkcg_policy_data *cpd)
298 return cpd ? cpd->blkcg : NULL;
311 return cgroup_path(blkg->blkcg->css.cgroup, buf, buflen);
353 * read locked. If called under either blkcg or queue lock, the iteration
359 css_for_each_descendant_pre((pos_css), &(p_blkg)->blkcg->css) \
374 css_for_each_descendant_post((pos_css), &(p_blkg)->blkcg->css) \
388 atomic_inc(&blkg->blkcg->css.cgroup->congestion_count);
413 atomic_dec(&blkg->blkcg->css.cgroup->congestion_count);
432 atomic_inc(&blkg->blkcg->css.cgroup->congestion_count);
449 atomic_dec(&blkg->blkcg->css.cgroup->congestion_count);
480 struct blkcg {
483 static inline struct blkcg_gq *blkg_lookup(struct blkcg *blkcg, void *key) { return NULL; }