bfq-iosched: move bfq_stat_recursive_sum into the only caller
authorChristoph Hellwig <hch@lst.de>
Thu, 6 Jun 2019 10:26:23 +0000 (12:26 +0200)
committerJens Axboe <axboe@kernel.dk>
Thu, 20 Jun 2019 16:32:34 +0000 (10:32 -0600)
commitd6258980daf207f986676e59e6ea295204cdc84e
treee6d24147a5ada8d78231e7a5271ea1eb33befb2b
parentc0ce79dca5b0e8373a546ebea2af7b3df94c584e
bfq-iosched: move bfq_stat_recursive_sum into the only caller

This function was moved from core block code and is way to generic.
Fold it into the only caller and simplify it based on the actually
passed arguments.

Acked-by: Tejun Heo <tj@kernel.org>
Acked-by: Paolo Valente <paolo.valente@linaro.org>
Signed-off-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
block/bfq-cgroup.c