From: David Howells Manage NFS modularity vs FS-Cache modularity such that NFS doesn't have the option to use the cache if NFS is built in and FS-Cache is a module. Signed-off-by: David Howells Signed-off-by: Andrew Morton --- fs/Kconfig | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff -puN fs/Kconfig~nfs-use-local-caching-kconfig-fix fs/Kconfig --- a/fs/Kconfig~nfs-use-local-caching-kconfig-fix +++ a/fs/Kconfig @@ -1646,7 +1646,8 @@ config NFS_V4 config NFS_FSCACHE bool "Provide NFS client caching support (EXPERIMENTAL)" - depends on NFS_FS && FSCACHE && EXPERIMENTAL + depends on EXPERIMENTAL + depends on NFS_FS=m && FSCACHE || NFS_FS=y && FSCACHE=y help Say Y here if you want NFS data to be cached locally on disc through the general filesystem cache manager _