177443f61SDavid Howells# SPDX-License-Identifier: GPL-2.0-only 277443f61SDavid Howells 377443f61SDavid Howellsconfig CACHEFILES 477443f61SDavid Howells tristate "Filesystem caching on files" 577443f61SDavid Howells depends on FSCACHE && BLOCK 677443f61SDavid Howells help 777443f61SDavid Howells This permits use of a mounted filesystem as a cache for other 877443f61SDavid Howells filesystems - primarily networking filesystems - thus allowing fast 977443f61SDavid Howells local disk to enhance the speed of slower devices. 1077443f61SDavid Howells 1177443f61SDavid Howells See Documentation/filesystems/caching/cachefiles.rst for more 1277443f61SDavid Howells information. 1377443f61SDavid Howells 1477443f61SDavid Howellsconfig CACHEFILES_DEBUG 1577443f61SDavid Howells bool "Debug CacheFiles" 1677443f61SDavid Howells depends on CACHEFILES 1777443f61SDavid Howells help 1877443f61SDavid Howells This permits debugging to be dynamically enabled in the filesystem 1977443f61SDavid Howells caching on files module. If this is set, the debugging output may be 2077443f61SDavid Howells enabled by setting bits in /sys/modules/cachefiles/parameter/debug or 2177443f61SDavid Howells by including a debugging specifier in /etc/cachefilesd.conf. 22a70f6526SDavid Howells 23a70f6526SDavid Howellsconfig CACHEFILES_ERROR_INJECTION 24a70f6526SDavid Howells bool "Provide error injection for cachefiles" 25a70f6526SDavid Howells depends on CACHEFILES && SYSCTL 26a70f6526SDavid Howells help 27a70f6526SDavid Howells This permits error injection to be enabled in cachefiles whilst a 28a70f6526SDavid Howells cache is in service. 29*c8383054SJeffle Xu 30*c8383054SJeffle Xuconfig CACHEFILES_ONDEMAND 31*c8383054SJeffle Xu bool "Support for on-demand read" 32*c8383054SJeffle Xu depends on CACHEFILES 33*c8383054SJeffle Xu default n 34*c8383054SJeffle Xu help 35*c8383054SJeffle Xu This permits userspace to enable the cachefiles on-demand read mode. 36*c8383054SJeffle Xu In this mode, when a cache miss occurs, responsibility for fetching 37*c8383054SJeffle Xu the data lies with the cachefiles backend instead of with the netfs 38*c8383054SJeffle Xu and is delegated to userspace. 39*c8383054SJeffle Xu 40*c8383054SJeffle Xu If unsure, say N. 41