block: make the block holder code optional
authorChristoph Hellwig <hch@lst.de>
Wed, 4 Aug 2021 09:41:40 +0000 (11:41 +0200)
committerJens Axboe <axboe@kernel.dk>
Mon, 9 Aug 2021 17:50:42 +0000 (11:50 -0600)
commitc66fd019713e9cf7d6f1243c378cd177d01fe18a
tree80ede76cba350b14391603e49f077eac477b9b6f
parent2112f5c1330a671fa852051d85cb9eadc05d7eb7
block: make the block holder code optional

Move the block holder code into a separate file as it is not in any way
related to the other block_dev.c code, and add a new selectable config
option for it so that we don't have to build it without any remapped
drivers selected.

The Kconfig symbol contains a _DEPRECATED suffix to match the comments
added in commit 49731baa41df
("block: restore multiple bd_link_disk_holder() support").

Signed-off-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: Mike Snitzer <snitzer@redhat.com>
Link: https://lore.kernel.org/r/20210804094147.459763-2-hch@lst.de
Signed-off-by: Jens Axboe <axboe@kernel.dk>
block/Kconfig
block/Makefile
block/holder.c [new file with mode: 0644]
drivers/md/Kconfig
drivers/md/bcache/Kconfig
fs/block_dev.c
include/linux/blk_types.h
include/linux/genhd.h