blk-mq: remove blk_qc_t_to_tag and blk_qc_t_is_internal
authorChristoph Hellwig <hch@lst.de>
Tue, 12 Oct 2021 11:12:17 +0000 (13:12 +0200)
committerJens Axboe <axboe@kernel.dk>
Mon, 18 Oct 2021 12:17:36 +0000 (06:17 -0600)
commitefbabbe121f96d4b1a98a2c2ef5d2e8f7fb41c87
treeba855272ab54f5a6acc878a23ddbc11ae163cc6a
parentc6699d6fe0ffe4d9fdc652d1acf5a94b4f9627ba
blk-mq: remove blk_qc_t_to_tag and blk_qc_t_is_internal

Merge both functions into their only caller to keep the blk-mq tag to
blk_qc_t mapping as private as possible in blk-mq.c.

Signed-off-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: Sagi Grimberg <sagi@grimberg.me>
Tested-by: Mark Wunderlich <mark.wunderlich@intel.com>
Link: https://lore.kernel.org/r/20211012111226.760968-8-hch@lst.de
Signed-off-by: Jens Axboe <axboe@kernel.dk>
block/blk-mq.c
include/linux/blk_types.h