2023-01-26 17:21:23

by Jeff Layton

[permalink] [raw]
Subject: [PATCH] nfsd: update comment over __nfsd_file_cache_purge

Signed-off-by: Jeff Layton <[email protected]>
---
fs/nfsd/filecache.c | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/fs/nfsd/filecache.c b/fs/nfsd/filecache.c
index 348ef543c4dc..e232937fea8e 100644
--- a/fs/nfsd/filecache.c
+++ b/fs/nfsd/filecache.c
@@ -808,7 +808,8 @@ nfsd_file_cache_init(void)
* @net: net-namespace to shut down the cache (may be NULL)
*
* Walk the nfsd_file cache and close out any that match @net. If @net is NULL,
- * then close out everything. Called when an nfsd instance is being shut down.
+ * then close out everything. Called when an nfsd instance is being shut down,
+ * and when the exports table is flushed.
*/
static void
__nfsd_file_cache_purge(struct net *net)
--
2.39.1



2023-01-26 21:32:52

by Chuck Lever III

[permalink] [raw]
Subject: Re: [PATCH] nfsd: update comment over __nfsd_file_cache_purge



> On Jan 26, 2023, at 12:21 PM, Jeff Layton <[email protected]> wrote:
>
> Signed-off-by: Jeff Layton <[email protected]>

Applied and pushed to topic-filecache-cleanups. Thanks!

That branch now includes nfsd_file_cond_queue(). Can you check
to see that I merged it appropriately?


> ---
> fs/nfsd/filecache.c | 3 ++-
> 1 file changed, 2 insertions(+), 1 deletion(-)
>
> diff --git a/fs/nfsd/filecache.c b/fs/nfsd/filecache.c
> index 348ef543c4dc..e232937fea8e 100644
> --- a/fs/nfsd/filecache.c
> +++ b/fs/nfsd/filecache.c
> @@ -808,7 +808,8 @@ nfsd_file_cache_init(void)
> * @net: net-namespace to shut down the cache (may be NULL)
> *
> * Walk the nfsd_file cache and close out any that match @net. If @net is NULL,
> - * then close out everything. Called when an nfsd instance is being shut down.
> + * then close out everything. Called when an nfsd instance is being shut down,
> + * and when the exports table is flushed.
> */
> static void
> __nfsd_file_cache_purge(struct net *net)
> --
> 2.39.1
>

--
Chuck Lever