[RFC PATCH 32/76] netfs: Make a netfs helper module

From: David Howells
Date: Fri Nov 20 2020 - 10:09:42 EST


Make a netfs helper module to manage read request segmentation, caching
support and transparent huge page support on behalf of a network
filesystem.

Signed-off-by: David Howells <dhowells@xxxxxxxxxx>
---

fs/fscache/Kconfig | 1 +
fs/netfs/Kconfig | 8 ++++++++
2 files changed, 9 insertions(+)
create mode 100644 fs/netfs/Kconfig

diff --git a/fs/fscache/Kconfig b/fs/fscache/Kconfig
index ce6f731065d0..b04f07160e5e 100644
--- a/fs/fscache/Kconfig
+++ b/fs/fscache/Kconfig
@@ -2,6 +2,7 @@

config FSCACHE
tristate "General filesystem local caching manager"
+ depends on NETFS_SUPPORT
help
This option enables a generic filesystem caching manager that can be
used by various network and other filesystems to cache data locally.
diff --git a/fs/netfs/Kconfig b/fs/netfs/Kconfig
new file mode 100644
index 000000000000..2ebf90e6ca95
--- /dev/null
+++ b/fs/netfs/Kconfig
@@ -0,0 +1,8 @@
+# SPDX-License-Identifier: GPL-2.0-only
+
+config NETFS_SUPPORT
+ tristate "Support for network filesystem high-level I/O"
+ help
+ This option enables support for network filesystems, including
+ helpers for high-level buffered I/O, abstracting out read
+ segmentation, local caching and transparent huge page support.