From: Pavel Begunkov <asml.silence@xxxxxxxxx> Clean up inflight counting code. Deduplicate it and fortify with types. v2: splitting the patch in two by Christoph suggestion Pavel Begunkov (2): blk-mq: Reuse callback in blk_mq_in_flight*() blk-mq: Embed counters into struct mq_inflight block/blk-mq.c | 32 ++++++++------------------------ 1 file changed, 8 insertions(+), 24 deletions(-) -- 2.23.0