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()
638 struct blkcg_policy *pol = blkcg_policy[i]; in blkcg_reset_stats()
678 const struct blkcg_policy *pol, int data, in blkcg_print_blkgs()
799 int blkg_conf_prep(struct blkcg *blkcg, const struct blkcg_policy *pol, in blkg_conf_prep()
1133 struct blkcg_policy *pol = blkcg_policy[i]; in blkcg_print_one_stat()
1311 blkcg_policy[i]->cpd_free_fn(blkcg->cpd[i]); in blkcg_css_free()
1339 struct blkcg_policy *pol = blkcg_policy[i]; in blkcg_css_alloc()
1375 blkcg_policy[i]->cpd_free_fn(blkcg->cpd[i]); in blkcg_css_alloc()
1499 int blkcg_activate_policy(struct gendisk *disk, const struct blkcg_policy *pol) in blkcg_activate_policy()
1614 const struct blkcg_policy *pol) in blkcg_deactivate_policy()
1651 static void blkcg_free_all_cpd(struct blkcg_policy *pol) in blkcg_free_all_cpd()
1670 int blkcg_policy_register(struct blkcg_policy *pol) in blkcg_policy_register()
1681 if (!blkcg_policy[i]) in blkcg_policy_register()
1695 blkcg_policy[pol->plid] = pol; in blkcg_policy_register()
1728 blkcg_policy[pol->plid] = NULL; in blkcg_policy_register()
1742 void blkcg_policy_unregister(struct blkcg_policy *pol) in blkcg_policy_unregister()
1746 if (WARN_ON(blkcg_policy[pol->plid] != pol)) in blkcg_policy_unregister()
1761 blkcg_policy[pol->plid] = NULL; in blkcg_policy_unregister()