xref: /linux/fs/netfs/Kconfig (revision 915cd30cdea8811cddd8f59e57dd9dd0a814b76c)
13a5829feSDavid Howells# SPDX-License-Identifier: GPL-2.0-only
23a5829feSDavid Howells
33a5829feSDavid Howellsconfig NETFS_SUPPORT
4b71c7912SDavid Howells	tristate
53a5829feSDavid Howells	help
63a5829feSDavid Howells	  This option enables support for network filesystems, including
73a5829feSDavid Howells	  helpers for high-level buffered I/O, abstracting out read
83a5829feSDavid Howells	  segmentation, local caching and transparent huge page support.
9289af54cSDavid Howells
10289af54cSDavid Howellsconfig NETFS_STATS
11289af54cSDavid Howells	bool "Gather statistical information on local caching"
12289af54cSDavid Howells	depends on NETFS_SUPPORT && PROC_FS
13289af54cSDavid Howells	help
14289af54cSDavid Howells	  This option causes statistical information to be gathered on local
15289af54cSDavid Howells	  caching and exported through file:
16289af54cSDavid Howells
17289af54cSDavid Howells		/proc/fs/fscache/stats
18289af54cSDavid Howells
19289af54cSDavid Howells	  The gathering of statistics adds a certain amount of overhead to
20289af54cSDavid Howells	  execution as there are a quite a few stats gathered, and on a
21289af54cSDavid Howells	  multi-CPU system these may be on cachelines that keep bouncing
22289af54cSDavid Howells	  between CPUs.  On the other hand, the stats are very useful for
23289af54cSDavid Howells	  debugging purposes.  Saying 'Y' here is recommended.
2447757ea8SDavid Howells
2547757ea8SDavid Howellsconfig FSCACHE
26*915cd30cSDavid Howells	bool "General filesystem local caching manager"
27*915cd30cSDavid Howells	depends on NETFS_SUPPORT
2847757ea8SDavid Howells	help
2947757ea8SDavid Howells	  This option enables a generic filesystem caching manager that can be
3047757ea8SDavid Howells	  used by various network and other filesystems to cache data locally.
3147757ea8SDavid Howells	  Different sorts of caches can be plugged in, depending on the
3247757ea8SDavid Howells	  resources available.
3347757ea8SDavid Howells
3447757ea8SDavid Howells	  See Documentation/filesystems/caching/fscache.rst for more information.
3547757ea8SDavid Howells
3647757ea8SDavid Howellsconfig FSCACHE_STATS
3747757ea8SDavid Howells	bool "Gather statistical information on local caching"
3847757ea8SDavid Howells	depends on FSCACHE && PROC_FS
3947757ea8SDavid Howells	select NETFS_STATS
4047757ea8SDavid Howells	help
4147757ea8SDavid Howells	  This option causes statistical information to be gathered on local
4247757ea8SDavid Howells	  caching and exported through file:
4347757ea8SDavid Howells
4447757ea8SDavid Howells		/proc/fs/fscache/stats
4547757ea8SDavid Howells
4647757ea8SDavid Howells	  The gathering of statistics adds a certain amount of overhead to
4747757ea8SDavid Howells	  execution as there are a quite a few stats gathered, and on a
4847757ea8SDavid Howells	  multi-CPU system these may be on cachelines that keep bouncing
4947757ea8SDavid Howells	  between CPUs.  On the other hand, the stats are very useful for
5047757ea8SDavid Howells	  debugging purposes.  Saying 'Y' here is recommended.
5147757ea8SDavid Howells
5247757ea8SDavid Howells	  See Documentation/filesystems/caching/fscache.rst for more information.
5347757ea8SDavid Howells
5447757ea8SDavid Howellsconfig FSCACHE_DEBUG
5547757ea8SDavid Howells	bool "Debug FS-Cache"
5647757ea8SDavid Howells	depends on FSCACHE
5747757ea8SDavid Howells	help
5847757ea8SDavid Howells	  This permits debugging to be dynamically enabled in the local caching
5947757ea8SDavid Howells	  management module.  If this is set, the debugging output may be
6047757ea8SDavid Howells	  enabled by setting bits in /sys/modules/fscache/parameter/debug.
6147757ea8SDavid Howells
6247757ea8SDavid Howells	  See Documentation/filesystems/caching/fscache.rst for more information.
63