block: Make struct request_queue smaller for CONFIG_BLK_DEV_ZONED=n
authorBart Van Assche <bart.vanassche@wdc.com>
Fri, 15 Jun 2018 21:55:21 +0000 (14:55 -0700)
committerJens Axboe <axboe@kernel.dk>
Mon, 9 Jul 2018 15:07:52 +0000 (09:07 -0600)
commit6a5ac9846508ad7d1d23881d9d5add35f2e6ae71
treec0386ecdda510c941829913bba55aa68085a92b3
parent7c8542b7982264226cf94102950343185869b584
block: Make struct request_queue smaller for CONFIG_BLK_DEV_ZONED=n

Exclude zoned block device members from struct request_queue for
CONFIG_BLK_DEV_ZONED == n. Avoid breaking the build by only building
the code that uses these struct request_queue members if
CONFIG_BLK_DEV_ZONED != n.

Signed-off-by: Bart Van Assche <bart.vanassche@wdc.com>
Reviewed-by: Damien Le Moal <damien.lemoal@wdc.com>
Cc: Matias Bjorling <mb@lightnvm.io>
Cc: Christoph Hellwig <hch@lst.de>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
block/Kconfig
block/Makefile
block/blk-mq-debugfs-zoned.c [new file with mode: 0644]
block/blk-mq-debugfs.c
block/blk-mq-debugfs.h
include/linux/blkdev.h