Lines Matching refs:weight_counter
709 if (bfqq->weight_counter) in bfq_weights_tree_add()
719 bfqq->weight_counter = __counter; in bfq_weights_tree_add()
728 bfqq->weight_counter = kzalloc(sizeof(struct bfq_weight_counter), in bfq_weights_tree_add()
744 if (unlikely(!bfqq->weight_counter)) in bfq_weights_tree_add()
747 bfqq->weight_counter->weight = entity->weight; in bfq_weights_tree_add()
748 rb_link_node(&bfqq->weight_counter->weights_node, parent, new); in bfq_weights_tree_add()
749 rb_insert_color(&bfqq->weight_counter->weights_node, root); in bfq_weights_tree_add()
752 bfqq->weight_counter->num_active++; in bfq_weights_tree_add()
766 if (!bfqq->weight_counter) in __bfq_weights_tree_remove()
769 bfqq->weight_counter->num_active--; in __bfq_weights_tree_remove()
770 if (bfqq->weight_counter->num_active > 0) in __bfq_weights_tree_remove()
773 rb_erase(&bfqq->weight_counter->weights_node, root); in __bfq_weights_tree_remove()
774 kfree(bfqq->weight_counter); in __bfq_weights_tree_remove()
777 bfqq->weight_counter = NULL; in __bfq_weights_tree_remove()
1026 (bfqq->weight_counter != NULL); in bfqq_process_refs()