Searched refs:blkg (Results 1 – 4 of 4) sorted by relevance
47 static void blkg_free(struct blkcg_gq *blkg) in blkg_free() argument51 if (!blkg) in blkg_free()55 kfree(blkg->pd[i]); in blkg_free()57 blk_exit_rl(&blkg->rl); in blkg_free()58 kfree(blkg); in blkg_free()72 struct blkcg_gq *blkg; in blkg_alloc() local76 blkg = kzalloc_node(sizeof(*blkg), gfp_mask, q->node); in blkg_alloc()77 if (!blkg) in blkg_alloc()80 blkg->q = q; in blkg_alloc()81 INIT_LIST_HEAD(&blkg->q_node); in blkg_alloc()[all …]
83 struct blkcg_gq *blkg; member115 typedef void (blkcg_pol_init_pd_fn)(struct blkcg_gq *blkg);116 typedef void (blkcg_pol_online_pd_fn)(struct blkcg_gq *blkg);117 typedef void (blkcg_pol_offline_pd_fn)(struct blkcg_gq *blkg);118 typedef void (blkcg_pol_exit_pd_fn)(struct blkcg_gq *blkg);119 typedef void (blkcg_pol_reset_pd_stats_fn)(struct blkcg_gq *blkg);171 struct blkcg_gq *blkg; member215 static inline struct blkg_policy_data *blkg_to_pd(struct blkcg_gq *blkg, in blkg_to_pd() argument218 return blkg ? blkg->pd[pol->plid] : NULL; in blkg_to_pd()229 return pd ? pd->blkg : NULL; in pd_to_blkg()[all …]
185 static inline struct throtl_grp *blkg_to_tg(struct blkcg_gq *blkg) in blkg_to_tg() argument187 return pd_to_tg(blkg_to_pd(blkg, &blkcg_policy_throtl)); in blkg_to_tg()406 static void throtl_pd_init(struct blkcg_gq *blkg) in throtl_pd_init() argument408 struct throtl_grp *tg = blkg_to_tg(blkg); in throtl_pd_init()409 struct throtl_data *td = blkg->q->td; in throtl_pd_init()429 if (cgroup_on_dfl(blkg->blkcg->css.cgroup) && blkg->parent) in throtl_pd_init()430 parent_sq = &blkg_to_tg(blkg->parent)->service_queue; in throtl_pd_init()473 static void throtl_pd_online(struct blkcg_gq *blkg) in throtl_pd_online() argument479 tg_update_has_rules(blkg_to_tg(blkg)); in throtl_pd_online()482 static void throtl_pd_exit(struct blkcg_gq *blkg) in throtl_pd_exit() argument[all …]
605 static inline struct cfq_group *blkg_to_cfqg(struct blkcg_gq *blkg) in blkg_to_cfqg() argument607 return pd_to_cfqg(blkg_to_pd(blkg, &blkcg_policy_cfq)); in blkg_to_cfqg()1547 static void cfq_pd_init(struct blkcg_gq *blkg) in cfq_pd_init() argument1549 struct cfq_group *cfqg = blkg_to_cfqg(blkg); in cfq_pd_init()1552 cfqg->weight = blkg->blkcg->cfq_weight; in cfq_pd_init()1553 cfqg->leaf_weight = blkg->blkcg->cfq_leaf_weight; in cfq_pd_init()1558 static void cfq_pd_offline(struct blkcg_gq *blkg) in cfq_pd_offline() argument1566 cfqg_stats_xfer_dead(blkg_to_cfqg(blkg)); in cfq_pd_offline()1595 static void cfq_pd_reset_stats(struct blkcg_gq *blkg) in cfq_pd_reset_stats() argument1597 struct cfq_group *cfqg = blkg_to_cfqg(blkg); in cfq_pd_reset_stats()[all …]