Lines Matching refs:plid
63 return pol && test_bit(pol->plid, q->blkcg_pols); in blkcg_policy_enabled()
184 pd->plid = i; in blkg_alloc()
533 total += prfill(sf, blkg->pd[pol->plid], data); in blkcg_print_blkgs()
1158 cpd->plid = 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()
1383 if (blkg->pd[pol->plid]) in blkcg_activate_policy()
1417 blkg->pd[pol->plid] = pd; in blkcg_activate_policy()
1419 pd->plid = pol->plid; in blkcg_activate_policy()
1425 pol->pd_init_fn(blkg->pd[pol->plid]); in blkcg_activate_policy()
1427 __set_bit(pol->plid, q->blkcg_pols); in blkcg_activate_policy()
1444 if (blkg->pd[pol->plid]) { in blkcg_activate_policy()
1445 pol->pd_free_fn(blkg->pd[pol->plid]); in blkcg_activate_policy()
1446 blkg->pd[pol->plid] = NULL; in blkcg_activate_policy()
1476 __clear_bit(pol->plid, q->blkcg_pols); in blkcg_deactivate_policy()
1479 if (blkg->pd[pol->plid]) { in blkcg_deactivate_policy()
1481 pol->pd_offline_fn(blkg->pd[pol->plid]); in blkcg_deactivate_policy()
1482 pol->pd_free_fn(blkg->pd[pol->plid]); in blkcg_deactivate_policy()
1483 blkg->pd[pol->plid] = NULL; in blkcg_deactivate_policy()
1525 pol->plid = i; in blkcg_policy_register()
1526 blkcg_policy[pol->plid] = pol; in blkcg_policy_register()
1537 blkcg->cpd[pol->plid] = cpd; in blkcg_policy_register()
1539 cpd->plid = pol->plid; 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()
1566 blkcg_policy[pol->plid] = NULL; in blkcg_policy_register()
1586 if (WARN_ON(blkcg_policy[pol->plid] != pol)) in blkcg_policy_unregister()
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()
1606 blkcg_policy[pol->plid] = NULL; in blkcg_policy_unregister()