162306a36Sopenharmony_ci# SPDX-License-Identifier: GPL-2.0-only
262306a36Sopenharmony_ci
362306a36Sopenharmony_ciconfig BCACHE
462306a36Sopenharmony_ci	tristate "Block device as cache"
562306a36Sopenharmony_ci	select BLOCK_HOLDER_DEPRECATED if SYSFS
662306a36Sopenharmony_ci	select CRC64
762306a36Sopenharmony_ci	help
862306a36Sopenharmony_ci	Allows a block device to be used as cache for other devices; uses
962306a36Sopenharmony_ci	a btree for indexing and the layout is optimized for SSDs.
1062306a36Sopenharmony_ci
1162306a36Sopenharmony_ci	See Documentation/admin-guide/bcache.rst for details.
1262306a36Sopenharmony_ci
1362306a36Sopenharmony_ciconfig BCACHE_DEBUG
1462306a36Sopenharmony_ci	bool "Bcache debugging"
1562306a36Sopenharmony_ci	depends on BCACHE
1662306a36Sopenharmony_ci	help
1762306a36Sopenharmony_ci	Don't select this option unless you're a developer
1862306a36Sopenharmony_ci
1962306a36Sopenharmony_ci	Enables extra debugging tools, allows expensive runtime checks to be
2062306a36Sopenharmony_ci	turned on.
2162306a36Sopenharmony_ci
2262306a36Sopenharmony_ciconfig BCACHE_CLOSURES_DEBUG
2362306a36Sopenharmony_ci	bool "Debug closures"
2462306a36Sopenharmony_ci	depends on BCACHE
2562306a36Sopenharmony_ci	select DEBUG_FS
2662306a36Sopenharmony_ci	help
2762306a36Sopenharmony_ci	Keeps all active closures in a linked list and provides a debugfs
2862306a36Sopenharmony_ci	interface to list them, which makes it possible to see asynchronous
2962306a36Sopenharmony_ci	operations that get stuck.
3062306a36Sopenharmony_ci
3162306a36Sopenharmony_ciconfig BCACHE_ASYNC_REGISTRATION
3262306a36Sopenharmony_ci	bool "Asynchronous device registration"
3362306a36Sopenharmony_ci	depends on BCACHE
3462306a36Sopenharmony_ci	help
3562306a36Sopenharmony_ci	Add a sysfs file /sys/fs/bcache/register_async. Writing registering
3662306a36Sopenharmony_ci	device path into this file will returns immediately and the real
3762306a36Sopenharmony_ci	registration work is handled in kernel work queue in asynchronous
3862306a36Sopenharmony_ci	way.
39