1ec8f24b7SThomas Gleixner# SPDX-License-Identifier: GPL-2.0-only 2cafe5635SKent Overstreet 3cafe5635SKent Overstreetconfig BCACHE 4cafe5635SKent Overstreet tristate "Block device as cache" 5c66fd019SChristoph Hellwig select BLOCK_HOLDER_DEPRECATED if SYSFS 6d2359963SColy Li select CRC64 78c8d2d96SKent Overstreet select CLOSURES 8*92a8b224SKuan-Wei Chiu select MIN_HEAP 9bc81b47eSColy Li help 10cafe5635SKent Overstreet Allows a block device to be used as cache for other devices; uses 11cafe5635SKent Overstreet a btree for indexing and the layout is optimized for SSDs. 12cafe5635SKent Overstreet 135fb94e9cSMauro Carvalho Chehab See Documentation/admin-guide/bcache.rst for details. 14cafe5635SKent Overstreet 15cafe5635SKent Overstreetconfig BCACHE_DEBUG 16cafe5635SKent Overstreet bool "Bcache debugging" 17cafe5635SKent Overstreet depends on BCACHE 18bc81b47eSColy Li help 19cafe5635SKent Overstreet Don't select this option unless you're a developer 20cafe5635SKent Overstreet 21280481d0SKent Overstreet Enables extra debugging tools, allows expensive runtime checks to be 22280481d0SKent Overstreet turned on. 23cafe5635SKent Overstreet 246acd193bSJean Delvareconfig BCACHE_ASYNC_REGISTRATION 25640c46a2SColy Li bool "Asynchronous device registration" 260c8d3fceSColy Li depends on BCACHE 270c8d3fceSColy Li help 280c8d3fceSColy Li Add a sysfs file /sys/fs/bcache/register_async. Writing registering 290c8d3fceSColy Li device path into this file will returns immediately and the real 300c8d3fceSColy Li registration work is handled in kernel work queue in asynchronous 310c8d3fceSColy Li way. 32