Lines Matching refs:bfqq

222 void bfqg_stats_update_io_add(struct bfq_group *bfqg, struct bfq_queue *bfqq,  in bfqg_stats_update_io_add()  argument
227 if (!(bfqq == ((struct bfq_data *)bfqg->bfqd)->in_service_queue)) in bfqg_stats_update_io_add()
228 bfqg_stats_set_start_group_wait_time(bfqg, bfqq_group(bfqq)); in bfqg_stats_update_io_add()
257 void bfqg_stats_update_io_add(struct bfq_group *bfqg, struct bfq_queue *bfqq, in bfqg_stats_update_io_add() argument
308 struct bfq_group *bfqq_group(struct bfq_queue *bfqq) in bfqq_group() argument
310 struct bfq_entity *group_entity = bfqq->entity.parent; in bfqq_group()
314 bfqq->bfqd->root_group; in bfqq_group()
426 struct bfq_queue *bfqq = bfq_entity_to_bfqq(entity); in bfq_init_entity() local
430 if (bfqq) { in bfq_init_entity()
431 bfqq->ioprio = bfqq->new_ioprio; in bfq_init_entity()
432 bfqq->ioprio_class = bfqq->new_ioprio_class; in bfq_init_entity()
642 void bfq_bfqq_move(struct bfq_data *bfqd, struct bfq_queue *bfqq, in bfq_bfqq_move() argument
645 struct bfq_entity *entity = &bfqq->entity; in bfq_bfqq_move()
651 bfqq->ref++; in bfq_bfqq_move()
659 if (bfqq == bfqd->in_service_queue) in bfq_bfqq_move()
663 if (bfq_bfqq_busy(bfqq)) in bfq_bfqq_move()
664 bfq_deactivate_bfqq(bfqd, bfqq, false, false); in bfq_bfqq_move()
667 bfqg_and_blkg_put(bfqq_group(bfqq)); in bfq_bfqq_move()
670 entity->parent->last_bfqq_created == bfqq) in bfq_bfqq_move()
672 else if (bfqd->last_bfqq_created == bfqq) in bfq_bfqq_move()
680 if (bfq_bfqq_busy(bfqq)) { in bfq_bfqq_move()
682 bfq_pos_tree_add_move(bfqd, bfqq); in bfq_bfqq_move()
683 bfq_activate_bfqq(bfqd, bfqq); in bfq_bfqq_move()
689 bfq_put_queue(bfqq); in bfq_bfqq_move()
833 struct bfq_queue *bfqq; in bfq_reparent_leaf_entity() local
848 bfqq = bfq_entity_to_bfqq(child_entity); in bfq_reparent_leaf_entity()
849 bfq_bfqq_move(bfqd, bfqq, bfqd->root_group); in bfq_reparent_leaf_entity()
1402 void bfq_bfqq_move(struct bfq_data *bfqd, struct bfq_queue *bfqq, in bfq_bfqq_move() argument
1407 struct bfq_queue *bfqq = bfq_entity_to_bfqq(entity); in bfq_init_entity() local
1411 if (bfqq) { in bfq_init_entity()
1412 bfqq->ioprio = bfqq->new_ioprio; in bfq_init_entity()
1413 bfqq->ioprio_class = bfqq->new_ioprio_class; in bfq_init_entity()
1430 struct bfq_group *bfqq_group(struct bfq_queue *bfqq) in bfqq_group() argument
1432 return bfqq->bfqd->root_group; in bfqq_group()