18c2ecf20Sopenharmony_ci# SPDX-License-Identifier: GPL-2.0-only
28c2ecf20Sopenharmony_ci
38c2ecf20Sopenharmony_ciconfig BCACHE
48c2ecf20Sopenharmony_ci	tristate "Block device as cache"
58c2ecf20Sopenharmony_ci	select CRC64
68c2ecf20Sopenharmony_ci	help
78c2ecf20Sopenharmony_ci	Allows a block device to be used as cache for other devices; uses
88c2ecf20Sopenharmony_ci	a btree for indexing and the layout is optimized for SSDs.
98c2ecf20Sopenharmony_ci
108c2ecf20Sopenharmony_ci	See Documentation/admin-guide/bcache.rst for details.
118c2ecf20Sopenharmony_ci
128c2ecf20Sopenharmony_ciconfig BCACHE_DEBUG
138c2ecf20Sopenharmony_ci	bool "Bcache debugging"
148c2ecf20Sopenharmony_ci	depends on BCACHE
158c2ecf20Sopenharmony_ci	help
168c2ecf20Sopenharmony_ci	Don't select this option unless you're a developer
178c2ecf20Sopenharmony_ci
188c2ecf20Sopenharmony_ci	Enables extra debugging tools, allows expensive runtime checks to be
198c2ecf20Sopenharmony_ci	turned on.
208c2ecf20Sopenharmony_ci
218c2ecf20Sopenharmony_ciconfig BCACHE_CLOSURES_DEBUG
228c2ecf20Sopenharmony_ci	bool "Debug closures"
238c2ecf20Sopenharmony_ci	depends on BCACHE
248c2ecf20Sopenharmony_ci	select DEBUG_FS
258c2ecf20Sopenharmony_ci	help
268c2ecf20Sopenharmony_ci	Keeps all active closures in a linked list and provides a debugfs
278c2ecf20Sopenharmony_ci	interface to list them, which makes it possible to see asynchronous
288c2ecf20Sopenharmony_ci	operations that get stuck.
298c2ecf20Sopenharmony_ci
308c2ecf20Sopenharmony_ciconfig BCACHE_ASYNC_REGISTRATION
318c2ecf20Sopenharmony_ci	bool "Asynchronous device registration (EXPERIMENTAL)"
328c2ecf20Sopenharmony_ci	depends on BCACHE
338c2ecf20Sopenharmony_ci	help
348c2ecf20Sopenharmony_ci	Add a sysfs file /sys/fs/bcache/register_async. Writing registering
358c2ecf20Sopenharmony_ci	device path into this file will returns immediately and the real
368c2ecf20Sopenharmony_ci	registration work is handled in kernel work queue in asynchronous
378c2ecf20Sopenharmony_ci	way.
38