summaryrefslogtreecommitdiffstats
path: root/include/linux/genhd.h
diff options
context:
space:
mode:
authorMikulas Patocka2018-12-06 17:41:21 +0100
committerJens Axboe2018-12-10 16:30:38 +0100
commite016b78201a2d9ff40f3f0da072292689af24c7f (patch)
treec81a404bcfe431857279e2f18c4a20e38191609c /include/linux/genhd.h
parentblock: switch to per-cpu in-flight counters (diff)
downloadkernel-qcow2-linux-e016b78201a2d9ff40f3f0da072292689af24c7f.tar.gz
kernel-qcow2-linux-e016b78201a2d9ff40f3f0da072292689af24c7f.tar.xz
kernel-qcow2-linux-e016b78201a2d9ff40f3f0da072292689af24c7f.zip
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>
Diffstat (limited to 'include/linux/genhd.h')
-rw-r--r--include/linux/genhd.h3
1 files changed, 1 insertions, 2 deletions
diff --git a/include/linux/genhd.h b/include/linux/genhd.h
index 636b4f687e35..06c0fd594097 100644
--- a/include/linux/genhd.h
+++ b/include/linux/genhd.h
@@ -391,8 +391,7 @@ static inline void free_part_stats(struct hd_struct *part)
#define part_stat_local_read_cpu(gendiskp, field, cpu) \
local_read(&(part_stat_get_cpu(gendiskp, field, cpu)))
-void part_in_flight(struct request_queue *q, struct hd_struct *part,
- unsigned int inflight[2]);
+unsigned int part_in_flight(struct request_queue *q, struct hd_struct *part);
void part_in_flight_rw(struct request_queue *q, struct hd_struct *part,
unsigned int inflight[2]);
void part_dec_in_flight(struct request_queue *q, struct hd_struct *part,