aboutsummaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorChristoph Hellwig <[email protected]>2021-10-12 13:12:17 +0200
committerJens Axboe <[email protected]>2021-10-18 06:17:36 -0600
commitefbabbe121f96d4b1a98a2c2ef5d2e8f7fb41c87 (patch)
treeba855272ab54f5a6acc878a23ddbc11ae163cc6a /include
parentc6699d6fe0ffe4d9fdc652d1acf5a94b4f9627ba (diff)
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 <[email protected]> Reviewed-by: Sagi Grimberg <[email protected]> Tested-by: Mark Wunderlich <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Jens Axboe <[email protected]>
Diffstat (limited to 'include')
-rw-r--r--include/linux/blk_types.h10
1 files changed, 0 insertions, 10 deletions
diff --git a/include/linux/blk_types.h b/include/linux/blk_types.h
index 000351c5312a..fb7c1477617b 100644
--- a/include/linux/blk_types.h
+++ b/include/linux/blk_types.h
@@ -505,16 +505,6 @@ static inline bool blk_qc_t_valid(blk_qc_t cookie)
return cookie != BLK_QC_T_NONE;
}
-static inline unsigned int blk_qc_t_to_tag(blk_qc_t cookie)
-{
- return cookie & ((1u << BLK_QC_T_SHIFT) - 1);
-}
-
-static inline bool blk_qc_t_is_internal(blk_qc_t cookie)
-{
- return (cookie & BLK_QC_T_INTERNAL) != 0;
-}
-
struct blk_rq_stat {
u64 mean;
u64 min;