mirror of
https://mirrors.bfsu.edu.cn/git/linux.git
synced 2024-12-14 22:44:27 +08:00
c66fd01971
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 49731baa41
("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>
39 lines
1.1 KiB
Plaintext
39 lines
1.1 KiB
Plaintext
# SPDX-License-Identifier: GPL-2.0-only
|
|
|
|
config BCACHE
|
|
tristate "Block device as cache"
|
|
select BLOCK_HOLDER_DEPRECATED if SYSFS
|
|
select CRC64
|
|
help
|
|
Allows a block device to be used as cache for other devices; uses
|
|
a btree for indexing and the layout is optimized for SSDs.
|
|
|
|
See Documentation/admin-guide/bcache.rst for details.
|
|
|
|
config BCACHE_DEBUG
|
|
bool "Bcache debugging"
|
|
depends on BCACHE
|
|
help
|
|
Don't select this option unless you're a developer
|
|
|
|
Enables extra debugging tools, allows expensive runtime checks to be
|
|
turned on.
|
|
|
|
config BCACHE_CLOSURES_DEBUG
|
|
bool "Debug closures"
|
|
depends on BCACHE
|
|
select DEBUG_FS
|
|
help
|
|
Keeps all active closures in a linked list and provides a debugfs
|
|
interface to list them, which makes it possible to see asynchronous
|
|
operations that get stuck.
|
|
|
|
config BCACHE_ASYNC_REGISTRATION
|
|
bool "Asynchronous device registration (EXPERIMENTAL)"
|
|
depends on BCACHE
|
|
help
|
|
Add a sysfs file /sys/fs/bcache/register_async. Writing registering
|
|
device path into this file will returns immediately and the real
|
|
registration work is handled in kernel work queue in asynchronous
|
|
way.
|