]> git.ipfire.org Git - thirdparty/kernel/stable.git/commitdiff
NFS: Move nfs40_shutdown_client into nfs40client.c
authorAnna Schumaker <anna.schumaker@oracle.com>
Fri, 14 Nov 2025 19:48:36 +0000 (14:48 -0500)
committerAnna Schumaker <anna.schumaker@oracle.com>
Fri, 30 Jan 2026 16:42:20 +0000 (11:42 -0500)
Signed-off-by: Anna Schumaker <anna.schumaker@oracle.com>
fs/nfs/nfs40.h
fs/nfs/nfs40client.c
fs/nfs/nfs40proc.c
fs/nfs/nfs4_fs.h
fs/nfs/nfs4client.c

index 272e1ffdb1615a374c3653ec10cce2f3cef3f96a..9369bb08825a8c8051e93c226323aabc967e9945 100644 (file)
@@ -3,6 +3,9 @@
 #define __LINUX_FS_NFS_NFS4_0_H
 
 
+/* nfs40client.c */
+void nfs40_shutdown_client(struct nfs_client *);
+
 /* nfs40proc.c */
 extern const struct nfs4_minor_version_ops nfs_v4_0_minor_ops;
 
index fae4ff584b1bbdcde3b3432040b33604367dced6..4a19ad9df7890a7bdc3950da1c1b74d7f533dc6f 100644 (file)
@@ -1,6 +1,7 @@
 /* SPDX-License-Identifier: GPL-2.0 */
 #include <linux/nfs_fs.h>
 #include "nfs4_fs.h"
+#include "nfs4session.h"
 #include "callback.h"
 #include "internal.h"
 #include "netns.h"
@@ -44,6 +45,14 @@ static bool nfs4_same_verifier(nfs4_verifier *v1, nfs4_verifier *v2)
        return memcmp(v1->data, v2->data, sizeof(v1->data)) == 0;
 }
 
+void nfs40_shutdown_client(struct nfs_client *clp)
+{
+       if (clp->cl_slot_tbl) {
+               nfs4_shutdown_slot_table(clp->cl_slot_tbl);
+               kfree(clp->cl_slot_tbl);
+       }
+}
+
 /**
  * nfs40_walk_client_list - Find server that recognizes a client ID
  *
index 5968a3318d14f742e2032a72f9c51c5252ece0ce..0399e2e68c6b8d0f24aefbf3ab05e5825644777a 100644 (file)
@@ -5,6 +5,7 @@
 #include <linux/nfs_fs.h>
 #include "internal.h"
 #include "nfs4_fs.h"
+#include "nfs40.h"
 #include "nfs4trace.h"
 
 static void nfs40_call_sync_prepare(struct rpc_task *task, void *calldata)
index 18f04906c5fa1db3998c78548805be8ac43eb2bc..3a81a658e5d20f9ebbddd70fe2f1595cbe60bab3 100644 (file)
@@ -482,7 +482,6 @@ extern const u32 nfs4_pathconf_bitmap[3];
 extern const u32 nfs4_fsinfo_bitmap[3];
 extern const u32 nfs4_fs_locations_bitmap[3];
 
-void nfs40_shutdown_client(struct nfs_client *);
 void nfs41_shutdown_client(struct nfs_client *);
 int nfs40_init_client(struct nfs_client *);
 int nfs41_init_client(struct nfs_client *);
index 517cf8af29431c6398925755b71151b46efd301c..d83a8a2a3c707cc525a6fee7f3122b63f0c0a415 100644 (file)
@@ -189,14 +189,6 @@ void nfs41_shutdown_client(struct nfs_client *clp)
 }
 #endif /* CONFIG_NFS_V4_1 */
 
-void nfs40_shutdown_client(struct nfs_client *clp)
-{
-       if (clp->cl_slot_tbl) {
-               nfs4_shutdown_slot_table(clp->cl_slot_tbl);
-               kfree(clp->cl_slot_tbl);
-       }
-}
-
 struct nfs_client *nfs4_alloc_client(const struct nfs_client_initdata *cl_init)
 {
        char buf[INET6_ADDRSTRLEN + 1];