xref: /linux/fs/netfs/Kconfig (revision 2a49d49159b76f6dd587131b3765d3458cc3aa01)
1# SPDX-License-Identifier: GPL-2.0-only
2
3config NETFS_SUPPORT
4	tristate
5	help
6	  This option enables support for network filesystems, including
7	  helpers for high-level buffered I/O, abstracting out read
8	  segmentation, local caching and transparent huge page support.
9
10config NETFS_STATS
11	bool "Gather statistical information on local caching"
12	depends on NETFS_SUPPORT && PROC_FS
13	help
14	  This option causes statistical information to be gathered on local
15	  caching and exported through file:
16
17		/proc/fs/fscache/stats
18
19	  The gathering of statistics adds a certain amount of overhead to
20	  execution as there are a quite a few stats gathered, and on a
21	  multi-CPU system these may be on cachelines that keep bouncing
22	  between CPUs.  On the other hand, the stats are very useful for
23	  debugging purposes.  Saying 'Y' here is recommended.
24
25config NETFS_PGPRIV2
26	bool
27
28config NETFS_DEBUG
29	bool "Enable dynamic debugging netfslib and FS-Cache"
30	depends on NETFS_SUPPORT
31	help
32	  This permits debugging to be dynamically enabled in the local caching
33	  management module.  If this is set, the debugging output may be
34	  enabled by setting bits in /sys/module/netfs/parameters/debug.
35
36config FSCACHE
37	bool "General filesystem local caching manager"
38	depends on NETFS_SUPPORT
39	help
40	  This option enables a generic filesystem caching manager that can be
41	  used by various network and other filesystems to cache data locally.
42	  Different sorts of caches can be plugged in, depending on the
43	  resources available.
44
45	  See Documentation/filesystems/caching/fscache.rst for more information.
46
47config FSCACHE_STATS
48	bool "Gather statistical information on local caching"
49	depends on FSCACHE && PROC_FS
50	select NETFS_STATS
51	help
52	  This option causes statistical information to be gathered on local
53	  caching and exported through file:
54
55		/proc/fs/fscache/stats
56
57	  The gathering of statistics adds a certain amount of overhead to
58	  execution as there are a quite a few stats gathered, and on a
59	  multi-CPU system these may be on cachelines that keep bouncing
60	  between CPUs.  On the other hand, the stats are very useful for
61	  debugging purposes.  Saying 'Y' here is recommended.
62
63	  See Documentation/filesystems/caching/fscache.rst for more information.
64