block: optimize blk_queue_zoned_model for !CONFIG_BLK_DEV_ZONED
authorChristoph Hellwig <hch@lst.de>
Thu, 20 Aug 2020 07:56:58 +0000 (09:56 +0200)
committerChristoph Hellwig <hch@lst.de>
Wed, 7 Oct 2020 05:56:17 +0000 (07:56 +0200)
commit6fcd669514794da08ce6bfa272b6ec9b33cb543d
tree4c68fb026fc5743d7f22bc8bbc6471eec4b53b7a
parent1401fcc4e3da97c44dcc7cbf538c07e24768d791
block: optimize blk_queue_zoned_model for !CONFIG_BLK_DEV_ZONED

Always return BLK_ZONED_NONE if zoned device support is not enabled.
This allows various compiler optimizations including the dead code
elimination that we so like for avoiding ifdefs.

Signed-off-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: Keith Busch <kbusch@kernel.org>
Reviewed-by: Sagi Grimberg <sagi@grimberg.me>
Reviewed-by: Chaitanya Kulkarni <chaitanya.kulkarni@wdc.com>
Reviewed-by: Damien Le Moal <damien.lemoal@wdc.com>
include/linux/blkdev.h