aboutsummaryrefslogtreecommitdiffstats
path: root/include/linux/blk_types.h
diff options
context:
space:
mode:
authorChristoph Hellwig <hch@lst.de>2021-10-12 13:12:18 +0200
committerJens Axboe <axboe@kernel.dk>2021-10-18 06:17:36 -0600
commit28a1ae6b9daba6ac65700eeb38479bd6fadec089 (patch)
tree3a225109e30871e2e06cd9a439bde0f26b9ced7d /include/linux/blk_types.h
parentblk-mq: remove blk_qc_t_to_tag and blk_qc_t_is_internal (diff)
downloadlinux-dev-28a1ae6b9daba6ac65700eeb38479bd6fadec089.tar.xz
linux-dev-28a1ae6b9daba6ac65700eeb38479bd6fadec089.zip
blk-mq: remove blk_qc_t_valid
Move the trivial check into the only caller. Signed-off-by: Christoph Hellwig <hch@lst.de> Reviewed-by: Sagi Grimberg <sagi@grimberg.me> Reviewed-by: Chaitanya Kulkarni <chaitanya.kulkarni@wdc.com> Tested-by: Mark Wunderlich <mark.wunderlich@intel.com> Link: https://lore.kernel.org/r/20211012111226.760968-9-hch@lst.de Signed-off-by: Jens Axboe <axboe@kernel.dk>
Diffstat (limited to 'include/linux/blk_types.h')
-rw-r--r--include/linux/blk_types.h5
1 files changed, 0 insertions, 5 deletions
diff --git a/include/linux/blk_types.h b/include/linux/blk_types.h
index fb7c1477617b..5017ba8fc539 100644
--- a/include/linux/blk_types.h
+++ b/include/linux/blk_types.h
@@ -500,11 +500,6 @@ typedef unsigned int blk_qc_t;
#define BLK_QC_T_SHIFT 16
#define BLK_QC_T_INTERNAL (1U << 31)
-static inline bool blk_qc_t_valid(blk_qc_t cookie)
-{
- return cookie != BLK_QC_T_NONE;
-}
-
struct blk_rq_stat {
u64 mean;
u64 min;