提交 f1a8bbd1 编写于 作者: C Christoph Hellwig 提交者: Jens Axboe

block: remove a superflous ifdef in blkdev.h

It doesn't hurt to always have the blk_zone_cond_str prototype, and the
two inlines can also be defined unconditionally.
Signed-off-by: NChristoph Hellwig <hch@lst.de>
Reviewed-by: NChaitanya Kulkarni <kch@nvidia.com>
Reviewed-by: NDamien Le Moal <damien.lemoal@opensource.wdc.com>
Reviewed-by: NJohannes Thumshirn <johannes.thumshirn@wdc.com>
Link: https://lore.kernel.org/r/20220706070350.1703384-2-hch@lst.deSigned-off-by: NJens Axboe <axboe@kernel.dk>
上级 4cf6e6c0
...@@ -899,8 +899,6 @@ static inline struct request_queue *bdev_get_queue(struct block_device *bdev) ...@@ -899,8 +899,6 @@ static inline struct request_queue *bdev_get_queue(struct block_device *bdev)
return bdev->bd_queue; /* this is never NULL */ return bdev->bd_queue; /* this is never NULL */
} }
#ifdef CONFIG_BLK_DEV_ZONED
/* Helper to convert BLK_ZONE_ZONE_XXX to its string format XXX */ /* Helper to convert BLK_ZONE_ZONE_XXX to its string format XXX */
const char *blk_zone_cond_str(enum blk_zone_cond zone_cond); const char *blk_zone_cond_str(enum blk_zone_cond zone_cond);
...@@ -915,7 +913,6 @@ static inline unsigned int bio_zone_is_seq(struct bio *bio) ...@@ -915,7 +913,6 @@ static inline unsigned int bio_zone_is_seq(struct bio *bio)
return blk_queue_zone_is_seq(bdev_get_queue(bio->bi_bdev), return blk_queue_zone_is_seq(bdev_get_queue(bio->bi_bdev),
bio->bi_iter.bi_sector); bio->bi_iter.bi_sector);
} }
#endif /* CONFIG_BLK_DEV_ZONED */
/* /*
* Return how much of the chunk is left to be used for I/O at a given offset. * Return how much of the chunk is left to be used for I/O at a given offset.
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册