Lines Matching refs:blkcg_policy
55 static struct blkcg_policy *blkcg_policy[BLKCG_MAX_POLS]; variable
114 const struct blkcg_policy *pol) in blkcg_policy_enabled()
136 blkcg_policy[i]->pd_free_fn(blkg->pd[i]); in blkg_free_workfn()
339 struct blkcg_policy *pol = blkcg_policy[i]; in blkg_alloc()
360 blkcg_policy[i]->pd_free_fn(blkg->pd[i]); in blkg_alloc()
417 struct blkcg_policy *pol = blkcg_policy[i]; in blkg_create()
431 struct blkcg_policy *pol = blkcg_policy[i]; in blkg_create()
546 struct blkcg_policy *pol = blkcg_policy[i]; in blkg_destroy()
612 struct blkcg_policy *pol = blkcg_policy[i]; in blkg_destroy_all()
673 struct blkcg_policy *pol = blkcg_policy[i]; in blkcg_reset_stats()
713 const struct blkcg_policy *pol, int data, in blkcg_print_blkgs()
834 int blkg_conf_prep(struct blkcg *blkcg, const struct blkcg_policy *pol, in blkg_conf_prep()
1184 struct blkcg_policy *pol = blkcg_policy[i]; in blkcg_print_one_stat()
1362 blkcg_policy[i]->cpd_free_fn(blkcg->cpd[i]); in blkcg_css_free()
1390 struct blkcg_policy *pol = blkcg_policy[i]; in blkcg_css_alloc()
1426 blkcg_policy[i]->cpd_free_fn(blkcg->cpd[i]); in blkcg_css_alloc()
1539 int blkcg_activate_policy(struct gendisk *disk, const struct blkcg_policy *pol) in blkcg_activate_policy()
1662 const struct blkcg_policy *pol) in blkcg_deactivate_policy()
1699 static void blkcg_free_all_cpd(struct blkcg_policy *pol) in blkcg_free_all_cpd()
1718 int blkcg_policy_register(struct blkcg_policy *pol) in blkcg_policy_register()
1729 if (!blkcg_policy[i]) in blkcg_policy_register()
1746 blkcg_policy[pol->plid] = pol; in blkcg_policy_register()
1779 blkcg_policy[pol->plid] = NULL; in blkcg_policy_register()
1793 void blkcg_policy_unregister(struct blkcg_policy *pol) in blkcg_policy_unregister()
1797 if (WARN_ON(blkcg_policy[pol->plid] != pol)) in blkcg_policy_unregister()
1812 blkcg_policy[pol->plid] = NULL; in blkcg_policy_unregister()