]> git.itanic.dy.fi Git - linux-stable/commit
block: move a few definitions out of CONFIG_BLK_DEV_ZONED
authorChristoph Hellwig <hch@lst.de>
Mon, 27 Nov 2023 07:20:02 +0000 (08:20 +0100)
committerJens Axboe <axboe@kernel.dk>
Mon, 27 Nov 2023 16:11:35 +0000 (09:11 -0700)
commit668bfeeabb5e402e3b36992f7859c284cc6e594d
treeed378f1ea52b4cdd6e04f1e1810cc5c4d6f67e21
parent70d85bec8f4c0d003db505bf35a3ec87bb1f627f
block: move a few definitions out of CONFIG_BLK_DEV_ZONED

Allow using a few symbols with IS_ENABLED instead of #idef by moving
the declarations out of #idef CONFIG_BLK_DEV_ZONED, and move
bdev_nr_zones into the remaining  #idef CONFIG_BLK_DEV_ZONED, #else
block below.

Signed-off-by: Christoph Hellwig <hch@lst.de>
Link: https://lore.kernel.org/r/20231127072002.1332685-1-hch@lst.de
Signed-off-by: Jens Axboe <axboe@kernel.dk>
include/linux/blkdev.h