]> git.baikalelectronics.ru Git - kernel.git/commit
block: return just one value from part_in_flight
authorMikulas Patocka <mpatocka@redhat.com>
Thu, 6 Dec 2018 16:41:21 +0000 (11:41 -0500)
committerJens Axboe <axboe@kernel.dk>
Mon, 10 Dec 2018 15:30:38 +0000 (08:30 -0700)
commitd30fee1d9a5651e99438d138e8b1c3c22c2db85c
treec81a404bcfe431857279e2f18c4a20e38191609c
parentdf76fa984242a1cdf96dbe979d3dc6e35dd7ffdd
block: return just one value from part_in_flight

The previous patches deleted all the code that needed the second value
returned from part_in_flight - now the kernel only uses the first value.

Consequently, part_in_flight (and blk_mq_in_flight) may be changed so that
it only returns one value.

This patch just refactors the code, there's no functional change.

Signed-off-by: Mikulas Patocka <mpatocka@redhat.com>
Signed-off-by: Mike Snitzer <snitzer@redhat.com>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
block/blk-mq.c
block/blk-mq.h
block/genhd.c
block/partition-generic.c
include/linux/genhd.h