Lines Matching refs:cpd
1128 if (blkcg->cpd[i]) in blkcg_css_free()
1129 blkcg_policy[i]->cpd_free_fn(blkcg->cpd[i]); in blkcg_css_free()
1157 struct blkcg_policy_data *cpd; in blkcg_css_alloc() local
1168 cpd = pol->cpd_alloc_fn(GFP_KERNEL); in blkcg_css_alloc()
1169 if (!cpd) { in blkcg_css_alloc()
1173 blkcg->cpd[i] = cpd; in blkcg_css_alloc()
1174 cpd->blkcg = blkcg; in blkcg_css_alloc()
1175 cpd->plid = i; in blkcg_css_alloc()
1177 pol->cpd_init_fn(cpd); in blkcg_css_alloc()
1194 if (blkcg->cpd[i]) in blkcg_css_alloc()
1195 blkcg_policy[i]->cpd_free_fn(blkcg->cpd[i]); in blkcg_css_alloc()
1339 if (blkcg->cpd[pol->plid]) in blkcg_bind()
1340 pol->cpd_bind_fn(blkcg->cpd[pol->plid]); in blkcg_bind()
1530 struct blkcg_policy_data *cpd; in blkcg_policy_register() local
1532 cpd = pol->cpd_alloc_fn(GFP_KERNEL); in blkcg_policy_register()
1533 if (!cpd) in blkcg_policy_register()
1536 blkcg->cpd[pol->plid] = cpd; in blkcg_policy_register()
1537 cpd->blkcg = blkcg; in blkcg_policy_register()
1538 cpd->plid = pol->plid; in blkcg_policy_register()
1539 pol->cpd_init_fn(cpd); in blkcg_policy_register()
1558 if (blkcg->cpd[pol->plid]) { in blkcg_policy_register()
1559 pol->cpd_free_fn(blkcg->cpd[pol->plid]); in blkcg_policy_register()
1560 blkcg->cpd[pol->plid] = NULL; in blkcg_policy_register()
1598 if (blkcg->cpd[pol->plid]) { in blkcg_policy_unregister()
1599 pol->cpd_free_fn(blkcg->cpd[pol->plid]); in blkcg_policy_unregister()
1600 blkcg->cpd[pol->plid] = NULL; in blkcg_policy_unregister()