Lines Matching refs:plid
55 return pol && test_bit(pol->plid, q->blkcg_pols); in blkcg_policy_enabled()
132 pd->plid = i; in blkg_alloc()
508 total += prfill(sf, blkg->pd[pol->plid], data); in blkcg_print_blkgs()
1010 cpd->plid = i; in blkcg_css_alloc()
1164 if (blkcg->cpd[pol->plid]) in blkcg_bind()
1165 pol->cpd_bind_fn(blkcg->cpd[pol->plid]); in blkcg_bind()
1231 if (blkg->pd[pol->plid]) in blkcg_activate_policy()
1242 blkg->pd[pol->plid] = pd; in blkcg_activate_policy()
1244 pd->plid = pol->plid; in blkcg_activate_policy()
1249 __set_bit(pol->plid, q->blkcg_pols); in blkcg_activate_policy()
1280 __clear_bit(pol->plid, q->blkcg_pols); in blkcg_deactivate_policy()
1286 if (blkg->pd[pol->plid]) { in blkcg_deactivate_policy()
1288 pol->pd_offline_fn(blkg->pd[pol->plid]); in blkcg_deactivate_policy()
1289 pol->pd_free_fn(blkg->pd[pol->plid]); in blkcg_deactivate_policy()
1290 blkg->pd[pol->plid] = NULL; in blkcg_deactivate_policy()
1325 pol->plid = i; in blkcg_policy_register()
1326 blkcg_policy[pol->plid] = pol; in blkcg_policy_register()
1339 blkcg->cpd[pol->plid] = cpd; in blkcg_policy_register()
1341 cpd->plid = pol->plid; in blkcg_policy_register()
1361 if (blkcg->cpd[pol->plid]) { in blkcg_policy_register()
1362 pol->cpd_free_fn(blkcg->cpd[pol->plid]); in blkcg_policy_register()
1363 blkcg->cpd[pol->plid] = NULL; in blkcg_policy_register()
1367 blkcg_policy[pol->plid] = NULL; in blkcg_policy_register()
1387 if (WARN_ON(blkcg_policy[pol->plid] != pol)) in blkcg_policy_unregister()
1401 if (blkcg->cpd[pol->plid]) { in blkcg_policy_unregister()
1402 pol->cpd_free_fn(blkcg->cpd[pol->plid]); in blkcg_policy_unregister()
1403 blkcg->cpd[pol->plid] = NULL; in blkcg_policy_unregister()
1407 blkcg_policy[pol->plid] = NULL; in blkcg_policy_unregister()