Lines Matching refs:cpd
1111 if (blkcg->cpd[i]) in blkcg_css_free()
1112 blkcg_policy[i]->cpd_free_fn(blkcg->cpd[i]); in blkcg_css_free()
1140 struct blkcg_policy_data *cpd; in blkcg_css_alloc() local
1151 cpd = pol->cpd_alloc_fn(GFP_KERNEL); in blkcg_css_alloc()
1152 if (!cpd) { in blkcg_css_alloc()
1156 blkcg->cpd[i] = cpd; in blkcg_css_alloc()
1157 cpd->blkcg = blkcg; in blkcg_css_alloc()
1158 cpd->plid = i; in blkcg_css_alloc()
1160 pol->cpd_init_fn(cpd); in blkcg_css_alloc()
1177 if (blkcg->cpd[i]) in blkcg_css_alloc()
1178 blkcg_policy[i]->cpd_free_fn(blkcg->cpd[i]); in blkcg_css_alloc()
1314 if (blkcg->cpd[pol->plid]) in blkcg_bind()
1315 pol->cpd_bind_fn(blkcg->cpd[pol->plid]); in blkcg_bind()
1531 struct blkcg_policy_data *cpd; in blkcg_policy_register() local
1533 cpd = pol->cpd_alloc_fn(GFP_KERNEL); in blkcg_policy_register()
1534 if (!cpd) in blkcg_policy_register()
1537 blkcg->cpd[pol->plid] = cpd; in blkcg_policy_register()
1538 cpd->blkcg = blkcg; in blkcg_policy_register()
1539 cpd->plid = pol->plid; in blkcg_policy_register()
1541 pol->cpd_init_fn(cpd); in blkcg_policy_register()
1560 if (blkcg->cpd[pol->plid]) { in blkcg_policy_register()
1561 pol->cpd_free_fn(blkcg->cpd[pol->plid]); in blkcg_policy_register()
1562 blkcg->cpd[pol->plid] = NULL; in blkcg_policy_register()
1600 if (blkcg->cpd[pol->plid]) { in blkcg_policy_unregister()
1601 pol->cpd_free_fn(blkcg->cpd[pol->plid]); in blkcg_policy_unregister()
1602 blkcg->cpd[pol->plid] = NULL; in blkcg_policy_unregister()