public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
From: Dragan Simic <dsimic@manjaro.org>
To: trondmy@kernel.org, anna@kernel.org
Cc: linux-nfs@vger.kernel.org, linux-kernel@vger.kernel.org,
	stable@vger.kernel.org, Diederik de Haas <didi.debian@cknow.org>
Subject: Re: [PATCH] nfs: Make NFS_FSCACHE select NETFS_SUPPORT instead of depending on it
Date: Tue, 07 Jan 2025 20:21:34 +0100	[thread overview]
Message-ID: <ba8defca2f731d588a94e5e7013c1c19@manjaro.org> (raw)
In-Reply-To: <4faf55b5022a9e363e3cad791144064636ed0eba.1735326877.git.dsimic@manjaro.org>

Hello,

On 2024-12-27 20:17, Dragan Simic wrote:
> 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>

Just checking, any thoughts about this patch?

> ---
>  fs/nfs/Kconfig | 3 ++-
>  1 file changed, 2 insertions(+), 1 deletion(-)
> 
> diff --git a/fs/nfs/Kconfig b/fs/nfs/Kconfig
> index 0eb20012792f..d3f76101ad4b 100644
> --- a/fs/nfs/Kconfig
> +++ b/fs/nfs/Kconfig
> @@ -170,7 +170,8 @@ config ROOT_NFS
> 
>  config NFS_FSCACHE
>  	bool "Provide NFS client caching support"
> -	depends on NFS_FS=m && NETFS_SUPPORT || NFS_FS=y && NETFS_SUPPORT=y
> +	depends on NFS_FS
> +	select NETFS_SUPPORT
>  	select FSCACHE
>  	help
>  	  Say Y here if you want NFS data to be cached locally on disc 
> through

      reply	other threads:[~2025-01-07 19:21 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2024-12-27 19:17 [PATCH] nfs: Make NFS_FSCACHE select NETFS_SUPPORT instead of depending on it Dragan Simic
2025-01-07 19:21 ` Dragan Simic [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=ba8defca2f731d588a94e5e7013c1c19@manjaro.org \
    --to=dsimic@manjaro.org \
    --cc=anna@kernel.org \
    --cc=didi.debian@cknow.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux-nfs@vger.kernel.org \
    --cc=stable@vger.kernel.org \
    --cc=trondmy@kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox