block: make part_in_flight() take an array of two ints
authorJens Axboe <axboe@kernel.dk>
Fri, 4 Aug 2017 14:35:20 +0000 (08:35 -0600)
committerJens Axboe <axboe@kernel.dk>
Fri, 4 Aug 2017 14:35:20 +0000 (08:35 -0600)
commita395bf3d1f01b140bab8274389d7be742740a296
tree7ee4f1388c2658be81de40d1d3124c2a4142687d
parent6a97fb59295fac4de114d5bc9b2881de8aed1def
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 infligh count, if the partition passed in is not the
root.

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

Signed-off-by: Jens Axboe <axboe@kernel.dk>
block/blk-core.c
block/genhd.c
block/partition-generic.c
include/linux/genhd.h