From: David Howells Manage AFS modularity vs FS-Cache modularity such that AFS doesn't have the option to use the cache if AFS 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~fs-cache-make-kafs-use-fs-cache-kconfig-fix fs/Kconfig --- a/fs/Kconfig~fs-cache-make-kafs-use-fs-cache-kconfig-fix +++ a/fs/Kconfig @@ -2089,7 +2089,8 @@ config AFS_FS config AFS_FSCACHE bool "Provide AFS client caching support" - depends on AFS_FS && FSCACHE && EXPERIMENTAL + depends on EXPERIMENTAL + depends on AFS_FS=m && FSCACHE || AFS_FS=y && FSCACHE=y help Say Y here if you want AFS data to be cached locally on through the generic filesystem cache manager _