aboutsummaryrefslogtreecommitdiff
path: root/fs/nfs/Kconfig
diff options
context:
space:
mode:
authorGravatar Dave Wysochanski <dwysocha@redhat.com> 2023-02-20 08:43:05 -0500
committerGravatar Anna Schumaker <Anna.Schumaker@Netapp.com> 2023-04-11 13:00:02 -0400
commit88a4d7bdeec97890cd543b58dd3588f1f879f51b (patch)
treef7970ca20b8998bceefece6ecbb6ccba47f5c74e /fs/nfs/Kconfig
parentNFS: Rename readpage_async_filler to nfs_read_add_folio (diff)
downloadlinux-88a4d7bdeec97890cd543b58dd3588f1f879f51b.tar.gz
linux-88a4d7bdeec97890cd543b58dd3588f1f879f51b.tar.bz2
linux-88a4d7bdeec97890cd543b58dd3588f1f879f51b.zip
NFS: Configure support for netfs when NFS fscache is configured
As first steps for support of the netfs library when NFS_FSCACHE is configured, add NETFS_SUPPORT to Kconfig and add the required netfs_inode into struct nfs_inode. Using netfs requires we move the VFS inode structure to be stored inside struct netfs_inode, along with the fscache_cookie. Thus, if NFS_FSCACHE is configured, place netfs_inode inside an anonymous union so the vfs_inode memory is the same and we do not need to modify other non-fscache areas of NFS. In addition, inside the NFS fscache code, use the new helpers, netfs_inode() and netfs_i_cookie() helpers, and remove our own helper, nfs_i_fscache(). Later patches will convert NFS fscache to fully use netfs. Signed-off-by: Dave Wysochanski <dwysocha@redhat.com> Tested-by: Daire Byrne <daire@dneg.com> Signed-off-by: Anna Schumaker <Anna.Schumaker@Netapp.com>
Diffstat (limited to 'fs/nfs/Kconfig')
-rw-r--r--fs/nfs/Kconfig1
1 files changed, 1 insertions, 0 deletions
diff --git a/fs/nfs/Kconfig b/fs/nfs/Kconfig
index c1c7ed2fd860..b6fc169be1b1 100644
--- a/fs/nfs/Kconfig
+++ b/fs/nfs/Kconfig
@@ -170,6 +170,7 @@ config ROOT_NFS
config NFS_FSCACHE
bool "Provide NFS client caching support"
depends on NFS_FS=m && FSCACHE || NFS_FS=y && FSCACHE=y
+ select NETFS_SUPPORT
help
Say Y here if you want NFS data to be cached locally on disc through
the general filesystem cache manager