Skip to content

Commit 90190ba

Browse files
Dragan SimicAnna Schumaker
authored andcommitted
nfs: Make NFS_FSCACHE select NETFS_SUPPORT instead of depending on it
Having the NFS_FSCACHE option depend on the NETFS_SUPPORT options makes selecting NFS_FSCACHE impossible unless another option that additionally selects NETFS_SUPPORT is already selected. As a result, for example, being able to reach and select the NFS_FSCACHE option requires the CEPH_FS or CIFS option to be selected beforehand, which obviously doesn't make much sense. Let's correct this by making the NFS_FSCACHE option actually select the NETFS_SUPPORT option, instead of depending on it. Fixes: 915cd30 ("netfs, fscache: Combine fscache with netfs") Cc: [email protected] Reported-by: Diederik de Haas <[email protected]> Signed-off-by: Dragan Simic <[email protected]> Signed-off-by: Anna Schumaker <[email protected]>
1 parent ead11ac commit 90190ba

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

fs/nfs/Kconfig

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -170,7 +170,8 @@ config ROOT_NFS
170170

171171
config NFS_FSCACHE
172172
bool "Provide NFS client caching support"
173-
depends on NFS_FS=m && NETFS_SUPPORT || NFS_FS=y && NETFS_SUPPORT=y
173+
depends on NFS_FS
174+
select NETFS_SUPPORT
174175
select FSCACHE
175176
help
176177
Say Y here if you want NFS data to be cached locally on disc through

0 commit comments

Comments
 (0)