nfs: Make NFS_FSCACHE select NETFS_SUPPORT instead of depending on it
authorDragan Simic <dsimic@manjaro.org>
Fri, 27 Dec 2024 19:17:58 +0000 (20:17 +0100)
committerAnna Schumaker <anna.schumaker@oracle.com>
Tue, 21 Jan 2025 16:34:50 +0000 (11:34 -0500)
commit90190ba1c3b11687e2c251fda1f5d9893b4bab17
tree464886c425822787524ae0a94e089c0bc85eed94
parentead11ac50ad4b8ef1b64806e962ea984862d96ad
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: 915cd30cdea8 ("netfs, fscache: Combine fscache with netfs")
Cc: stable@vger.kernel.org
Reported-by: Diederik de Haas <didi.debian@cknow.org>
Signed-off-by: Dragan Simic <dsimic@manjaro.org>
Signed-off-by: Anna Schumaker <anna.schumaker@oracle.com>
fs/nfs/Kconfig