Lines Matching refs:parent
305 if (cgroup_subsys_on_dfl(io_cgrp_subsys) && !blkg->parent) in tg_bps_limit()
335 if (cgroup_subsys_on_dfl(io_cgrp_subsys) && !blkg->parent) in tg_iops_limit()
560 if (cgroup_subsys_on_dfl(io_cgrp_subsys) && blkg->parent) in throtl_pd_init()
561 sq->parent_sq = &blkg_to_tg(blkg->parent)->service_queue; in throtl_pd_init()
675 struct rb_node *parent = NULL; in tg_service_queue_add() local
681 parent = *node; in tg_service_queue_add()
682 __tg = rb_entry_tg(parent); in tg_service_queue_add()
685 node = &parent->rb_left; in tg_service_queue_add()
687 node = &parent->rb_right; in tg_service_queue_add()
692 rb_link_node(&tg->rb_node, parent, node); in tg_service_queue_add()
1427 if (!cgroup_subsys_on_dfl(io_cgrp_subsys) || !blkg->parent || in tg_conf_updated()
1428 !blkg->parent->parent) in tg_conf_updated()
1430 parent_tg = blkg_to_tg(blkg->parent); in tg_conf_updated()
1817 struct throtl_grp *parent = tg; in tg_last_low_overflow_time() local
1821 parent_sq = parent->service_queue.parent_sq; in tg_last_low_overflow_time()
1822 parent = sq_to_tg(parent_sq); in tg_last_low_overflow_time()
1823 if (!parent) in tg_last_low_overflow_time()
1830 if (!parent->bps[READ][LIMIT_LOW] && in tg_last_low_overflow_time()
1831 !parent->iops[READ][LIMIT_LOW] && in tg_last_low_overflow_time()
1832 !parent->bps[WRITE][LIMIT_LOW] && in tg_last_low_overflow_time()
1833 !parent->iops[WRITE][LIMIT_LOW]) in tg_last_low_overflow_time()
1835 if (time_after(__tg_last_low_overflow_time(parent), ret)) in tg_last_low_overflow_time()
1836 ret = __tg_last_low_overflow_time(parent); in tg_last_low_overflow_time()
1900 if (!tg || !tg_to_blkg(tg)->parent) in throtl_hierarchy_can_upgrade()
2017 if (!tg || !tg_to_blkg(tg)->parent) in throtl_hierarchy_can_downgrade()
2189 struct throtl_grp *parent = blkg_to_tg(blkg); in blk_throtl_charge_bio_split() local
2194 if (!parent->has_rules[rw]) in blk_throtl_charge_bio_split()
2197 atomic_inc(&parent->io_split_cnt[rw]); in blk_throtl_charge_bio_split()
2198 atomic_inc(&parent->last_io_split_cnt[rw]); in blk_throtl_charge_bio_split()
2200 parent_sq = parent->service_queue.parent_sq; in blk_throtl_charge_bio_split()
2201 parent = sq_to_tg(parent_sq); in blk_throtl_charge_bio_split()
2202 } while (parent); in blk_throtl_charge_bio_split()