diff options
author | Yu Kuai <yukuai3@huawei.com> | 2022-09-16 10:19:41 +0300 |
---|---|---|
committer | Jens Axboe <axboe@kernel.dk> | 2022-11-01 16:09:44 +0300 |
commit | afdba14612622ec75896e5646950b3562a9aadd3 (patch) | |
tree | c28a958e7ddc6e0ef56fa2da8ef1d355af25641e /block/bfq-iosched.h | |
parent | eed3ecc991c90a4a0ce32ea2b35378dc351f012b (diff) | |
download | linux-afdba14612622ec75896e5646950b3562a9aadd3.tar.xz |
block, bfq: cleanup bfq_weights_tree add/remove apis
The 'bfq_data' and 'rb_root_cached' can both be accessed through
'bfq_queue', thus only pass 'bfq_queue' as parameter.
Signed-off-by: Yu Kuai <yukuai3@huawei.com>
Reviewed-by: Jan Kara <jack@suse.cz>
Acked-by: Paolo Valente <paolo.valente@linaro.org>
Link: https://lore.kernel.org/r/20220916071942.214222-6-yukuai1@huaweicloud.com
Signed-off-by: Jens Axboe <axboe@kernel.dk>
Diffstat (limited to 'block/bfq-iosched.h')
-rw-r--r-- | block/bfq-iosched.h | 10 |
1 files changed, 3 insertions, 7 deletions
diff --git a/block/bfq-iosched.h b/block/bfq-iosched.h index 5bfb7fb3dc2b..f56147e12501 100644 --- a/block/bfq-iosched.h +++ b/block/bfq-iosched.h @@ -969,13 +969,9 @@ struct bfq_queue *bic_to_bfqq(struct bfq_io_cq *bic, bool is_sync); void bic_set_bfqq(struct bfq_io_cq *bic, struct bfq_queue *bfqq, bool is_sync); struct bfq_data *bic_to_bfqd(struct bfq_io_cq *bic); void bfq_pos_tree_add_move(struct bfq_data *bfqd, struct bfq_queue *bfqq); -void bfq_weights_tree_add(struct bfq_data *bfqd, struct bfq_queue *bfqq, - struct rb_root_cached *root); -void __bfq_weights_tree_remove(struct bfq_data *bfqd, - struct bfq_queue *bfqq, - struct rb_root_cached *root); -void bfq_weights_tree_remove(struct bfq_data *bfqd, - struct bfq_queue *bfqq); +void bfq_weights_tree_add(struct bfq_queue *bfqq); +void __bfq_weights_tree_remove(struct bfq_queue *bfqq); +void bfq_weights_tree_remove(struct bfq_queue *bfqq); void bfq_bfqq_expire(struct bfq_data *bfqd, struct bfq_queue *bfqq, bool compensate, enum bfqq_expiration reason); void bfq_put_queue(struct bfq_queue *bfqq); |