Lines Matching refs:plid
65 return pol && test_bit(pol->plid, q->blkcg_pols); in blkcg_policy_enabled()
195 pd->plid = i; in blkg_alloc()
529 total += prfill(sf, blkg->pd[pol->plid], data); in blkcg_print_blkgs()
1118 cpd->plid = i; in blkcg_css_alloc()
1250 if (blkcg->cpd[pol->plid]) in blkcg_bind()
1251 pol->cpd_bind_fn(blkcg->cpd[pol->plid]); in blkcg_bind()
1320 if (blkg->pd[pol->plid]) in blkcg_activate_policy()
1354 blkg->pd[pol->plid] = pd; in blkcg_activate_policy()
1356 pd->plid = pol->plid; in blkcg_activate_policy()
1362 pol->pd_init_fn(blkg->pd[pol->plid]); in blkcg_activate_policy()
1364 __set_bit(pol->plid, q->blkcg_pols); in blkcg_activate_policy()
1384 if (blkg->pd[pol->plid]) { in blkcg_activate_policy()
1385 pol->pd_free_fn(blkg->pd[pol->plid]); in blkcg_activate_policy()
1386 blkg->pd[pol->plid] = NULL; in blkcg_activate_policy()
1417 __clear_bit(pol->plid, q->blkcg_pols); in blkcg_deactivate_policy()
1423 if (blkg->pd[pol->plid]) { in blkcg_deactivate_policy()
1425 pol->pd_offline_fn(blkg->pd[pol->plid]); in blkcg_deactivate_policy()
1426 pol->pd_free_fn(blkg->pd[pol->plid]); in blkcg_deactivate_policy()
1427 blkg->pd[pol->plid] = NULL; in blkcg_deactivate_policy()
1470 pol->plid = i; in blkcg_policy_register()
1471 blkcg_policy[pol->plid] = pol; in blkcg_policy_register()
1482 blkcg->cpd[pol->plid] = cpd; in blkcg_policy_register()
1484 cpd->plid = pol->plid; in blkcg_policy_register()
1505 if (blkcg->cpd[pol->plid]) { in blkcg_policy_register()
1506 pol->cpd_free_fn(blkcg->cpd[pol->plid]); in blkcg_policy_register()
1507 blkcg->cpd[pol->plid] = NULL; in blkcg_policy_register()
1511 blkcg_policy[pol->plid] = NULL; in blkcg_policy_register()
1531 if (WARN_ON(blkcg_policy[pol->plid] != pol)) in blkcg_policy_unregister()
1545 if (blkcg->cpd[pol->plid]) { in blkcg_policy_unregister()
1546 pol->cpd_free_fn(blkcg->cpd[pol->plid]); in blkcg_policy_unregister()
1547 blkcg->cpd[pol->plid] = NULL; in blkcg_policy_unregister()
1551 blkcg_policy[pol->plid] = NULL; in blkcg_policy_unregister()