Lines Matching refs:cpd
973 if (blkcg->cpd[i]) in blkcg_css_free()
974 blkcg_policy[i]->cpd_free_fn(blkcg->cpd[i]); in blkcg_css_free()
1002 struct blkcg_policy_data *cpd; in blkcg_css_alloc() local
1013 cpd = pol->cpd_alloc_fn(GFP_KERNEL); in blkcg_css_alloc()
1014 if (!cpd) { in blkcg_css_alloc()
1018 blkcg->cpd[i] = cpd; in blkcg_css_alloc()
1019 cpd->blkcg = blkcg; in blkcg_css_alloc()
1020 cpd->plid = i; in blkcg_css_alloc()
1022 pol->cpd_init_fn(cpd); in blkcg_css_alloc()
1038 if (blkcg->cpd[i]) in blkcg_css_alloc()
1039 blkcg_policy[i]->cpd_free_fn(blkcg->cpd[i]); in blkcg_css_alloc()
1172 if (blkcg->cpd[pol->plid]) in blkcg_bind()
1173 pol->cpd_bind_fn(blkcg->cpd[pol->plid]); in blkcg_bind()
1339 struct blkcg_policy_data *cpd; in blkcg_policy_register() local
1341 cpd = pol->cpd_alloc_fn(GFP_KERNEL); in blkcg_policy_register()
1342 if (!cpd) in blkcg_policy_register()
1345 blkcg->cpd[pol->plid] = cpd; in blkcg_policy_register()
1346 cpd->blkcg = blkcg; in blkcg_policy_register()
1347 cpd->plid = pol->plid; in blkcg_policy_register()
1348 pol->cpd_init_fn(cpd); in blkcg_policy_register()
1367 if (blkcg->cpd[pol->plid]) { in blkcg_policy_register()
1368 pol->cpd_free_fn(blkcg->cpd[pol->plid]); in blkcg_policy_register()
1369 blkcg->cpd[pol->plid] = NULL; in blkcg_policy_register()
1407 if (blkcg->cpd[pol->plid]) { in blkcg_policy_unregister()
1408 pol->cpd_free_fn(blkcg->cpd[pol->plid]); in blkcg_policy_unregister()
1409 blkcg->cpd[pol->plid] = NULL; in blkcg_policy_unregister()