Lines Matching refs:cpd
963 if (blkcg->cpd[i]) in blkcg_css_free()
964 blkcg_policy[i]->cpd_free_fn(blkcg->cpd[i]); in blkcg_css_free()
992 struct blkcg_policy_data *cpd; in blkcg_css_alloc() local
1003 cpd = pol->cpd_alloc_fn(GFP_KERNEL); in blkcg_css_alloc()
1004 if (!cpd) { in blkcg_css_alloc()
1008 blkcg->cpd[i] = cpd; in blkcg_css_alloc()
1009 cpd->blkcg = blkcg; in blkcg_css_alloc()
1010 cpd->plid = i; in blkcg_css_alloc()
1012 pol->cpd_init_fn(cpd); in blkcg_css_alloc()
1028 if (blkcg->cpd[i]) in blkcg_css_alloc()
1029 blkcg_policy[i]->cpd_free_fn(blkcg->cpd[i]); in blkcg_css_alloc()
1164 if (blkcg->cpd[pol->plid]) in blkcg_bind()
1165 pol->cpd_bind_fn(blkcg->cpd[pol->plid]); in blkcg_bind()
1331 struct blkcg_policy_data *cpd; in blkcg_policy_register() local
1333 cpd = pol->cpd_alloc_fn(GFP_KERNEL); in blkcg_policy_register()
1334 if (!cpd) { in blkcg_policy_register()
1339 blkcg->cpd[pol->plid] = cpd; in blkcg_policy_register()
1340 cpd->blkcg = blkcg; in blkcg_policy_register()
1341 cpd->plid = pol->plid; in blkcg_policy_register()
1342 pol->cpd_init_fn(cpd); in blkcg_policy_register()
1361 if (blkcg->cpd[pol->plid]) { in blkcg_policy_register()
1362 pol->cpd_free_fn(blkcg->cpd[pol->plid]); in blkcg_policy_register()
1363 blkcg->cpd[pol->plid] = NULL; in blkcg_policy_register()
1401 if (blkcg->cpd[pol->plid]) { in blkcg_policy_unregister()
1402 pol->cpd_free_fn(blkcg->cpd[pol->plid]); in blkcg_policy_unregister()
1403 blkcg->cpd[pol->plid] = NULL; in blkcg_policy_unregister()