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>
Showing
- block/Kconfig 4 additions, 0 deletionsblock/Kconfig
- block/Makefile 1 addition, 0 deletionsblock/Makefile
- block/blk-mq-debugfs-zoned.c 24 additions, 0 deletionsblock/blk-mq-debugfs-zoned.c
- block/blk-mq-debugfs.c 0 additions, 15 deletionsblock/blk-mq-debugfs.c
- block/blk-mq-debugfs.h 9 additions, 0 deletionsblock/blk-mq-debugfs.h
- include/linux/blkdev.h 6 additions, 0 deletionsinclude/linux/blkdev.h
Loading
Please register or sign in to comment