bfq: Extract bfq_group_set_weight from bfq_io_set_weight_legacy
authorFam Zheng <zhengfeiran@bytedance.com>
Wed, 28 Aug 2019 03:54:52 +0000 (11:54 +0800)
committerJens Axboe <axboe@kernel.dk>
Fri, 6 Sep 2019 20:33:50 +0000 (14:33 -0600)
commit5ff047e32812f57c13389c4a9cdb1427620b3a6f
treef685166995006477cb0eaef5296ff990ad7d3b1f
parente9d3c866bf4cdbb6637e6cb268c26dfdf06d8cd3
bfq: Extract bfq_group_set_weight from bfq_io_set_weight_legacy

This function will be useful when we update weight from the soon-coming
per-device interface.

Signed-off-by: Fam Zheng <zhengfeiran@bytedance.com>
Reviewed-by: Paolo Valente <paolo.valente@linaro.org>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
block/bfq-cgroup.c