]> www.infradead.org Git - users/hch/block.git/commit
block: make the block holder code optional
authorChristoph Hellwig <hch@lst.de>
Mon, 28 Jun 2021 16:08:33 +0000 (18:08 +0200)
committerChristoph Hellwig <hch@lst.de>
Wed, 4 Aug 2021 08:03:52 +0000 (10:03 +0200)
commit136eebc59d87d089fb2912c5bfcd62dac73b097c
treea796d5e7af07929af7059ef918b1ee64b26aef1a
parent2bc1f6e442eec88fa60f1ee6bef2c9871227cf8a
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>
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