Lines Matching refs:cpd
1059 if (blkcg->cpd[i]) in blkcg_css_free()
1060 blkcg_policy[i]->cpd_free_fn(blkcg->cpd[i]); in blkcg_css_free()
1088 struct blkcg_policy_data *cpd; in blkcg_css_alloc() local
1099 cpd = pol->cpd_alloc_fn(GFP_KERNEL); in blkcg_css_alloc()
1100 if (!cpd) { in blkcg_css_alloc()
1104 blkcg->cpd[i] = cpd; in blkcg_css_alloc()
1105 cpd->blkcg = blkcg; in blkcg_css_alloc()
1106 cpd->plid = i; in blkcg_css_alloc()
1108 pol->cpd_init_fn(cpd); in blkcg_css_alloc()
1125 if (blkcg->cpd[i]) in blkcg_css_alloc()
1126 blkcg_policy[i]->cpd_free_fn(blkcg->cpd[i]); in blkcg_css_alloc()
1264 if (blkcg->cpd[pol->plid]) in blkcg_bind()
1265 pol->cpd_bind_fn(blkcg->cpd[pol->plid]); in blkcg_bind()
1491 struct blkcg_policy_data *cpd; in blkcg_policy_register() local
1493 cpd = pol->cpd_alloc_fn(GFP_KERNEL); in blkcg_policy_register()
1494 if (!cpd) in blkcg_policy_register()
1497 blkcg->cpd[pol->plid] = cpd; in blkcg_policy_register()
1498 cpd->blkcg = blkcg; in blkcg_policy_register()
1499 cpd->plid = pol->plid; in blkcg_policy_register()
1501 pol->cpd_init_fn(cpd); in blkcg_policy_register()
1520 if (blkcg->cpd[pol->plid]) { in blkcg_policy_register()
1521 pol->cpd_free_fn(blkcg->cpd[pol->plid]); in blkcg_policy_register()
1522 blkcg->cpd[pol->plid] = NULL; in blkcg_policy_register()
1560 if (blkcg->cpd[pol->plid]) { in blkcg_policy_unregister()
1561 pol->cpd_free_fn(blkcg->cpd[pol->plid]); in blkcg_policy_unregister()
1562 blkcg->cpd[pol->plid] = NULL; in blkcg_policy_unregister()