]> git.baikalelectronics.ru Git - kernel.git/commit
block: make part_in_flight() take an array of two ints
authorJens Axboe <axboe@kernel.dk>
Tue, 8 Aug 2017 23:49:47 +0000 (17:49 -0600)
committerJens Axboe <axboe@kernel.dk>
Wed, 9 Aug 2017 19:09:20 +0000 (13:09 -0600)
commita7522b0f3085f7e75460bdda47e77c75512c86fa
tree375a8c090f2b2022de3339bc3960e95b3878de7a
parent387af5c292cbe63b0031343ca7c3ffc88288a8b3
block: make part_in_flight() take an array of two ints

Instead of returning the count that matches the partition, pass
in an array of two ints. Index 0 will be filled with the inflight
count for the partition in question, and index 1 will filled
with the root inflight count, if the partition passed in is not the
root.

This is in preparation for being able to calculate both in one
go.

Reviewed-by: Bart Van Assche <bart.vanassche@wdc.com>
Reviewed-by: Omar Sandoval <osandov@fb.com>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
block/blk-core.c
block/genhd.c
block/partition-generic.c
include/linux/genhd.h