0001 # SPDX-License-Identifier: GPL-2.0-only
0002
0003 config BCACHE
0004 tristate "Block device as cache"
0005 select BLOCK_HOLDER_DEPRECATED if SYSFS
0006 select CRC64
0007 help
0008 Allows a block device to be used as cache for other devices; uses
0009 a btree for indexing and the layout is optimized for SSDs.
0010
0011 See Documentation/admin-guide/bcache.rst for details.
0012
0013 config BCACHE_DEBUG
0014 bool "Bcache debugging"
0015 depends on BCACHE
0016 help
0017 Don't select this option unless you're a developer
0018
0019 Enables extra debugging tools, allows expensive runtime checks to be
0020 turned on.
0021
0022 config BCACHE_CLOSURES_DEBUG
0023 bool "Debug closures"
0024 depends on BCACHE
0025 select DEBUG_FS
0026 help
0027 Keeps all active closures in a linked list and provides a debugfs
0028 interface to list them, which makes it possible to see asynchronous
0029 operations that get stuck.
0030
0031 config BCACHE_ASYNC_REGISTRATION
0032 bool "Asynchronous device registration"
0033 depends on BCACHE
0034 help
0035 Add a sysfs file /sys/fs/bcache/register_async. Writing registering
0036 device path into this file will returns immediately and the real
0037 registration work is handled in kernel work queue in asynchronous
0038 way.