summaryrefslogtreecommitdiffstats
path: root/fs/nfs/sysfs.h
diff options
context:
space:
mode:
authorBenjamin Coddington <bcodding@redhat.com>2023-06-15 14:07:27 -0400
committerTrond Myklebust <trond.myklebust@hammerspace.com>2023-06-19 15:04:13 -0400
commite13b549319a684dd80c4cc25e9567a5c84007e32 (patch)
treecf0f8538359cc734dfd594d8a6c32db8f832c69d /fs/nfs/sysfs.h
parent1c7251187dc067a6d460cf33ca67da9c1dd87807 (diff)
downloadlinux-stable-e13b549319a684dd80c4cc25e9567a5c84007e32.tar.gz
linux-stable-e13b549319a684dd80c4cc25e9567a5c84007e32.tar.bz2
linux-stable-e13b549319a684dd80c4cc25e9567a5c84007e32.zip
NFS: Add sysfs links to sunrpc clients for nfs_clients
For the general and state management nfs_client under each mount, create symlinks to their respective rpc_client sysfs entries. Signed-off-by: Benjamin Coddington <bcodding@redhat.com> Signed-off-by: Trond Myklebust <trond.myklebust@hammerspace.com>
Diffstat (limited to 'fs/nfs/sysfs.h')
-rw-r--r--fs/nfs/sysfs.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/fs/nfs/sysfs.h b/fs/nfs/sysfs.h
index c9f5e3677eb5..c5d1990cade5 100644
--- a/fs/nfs/sysfs.h
+++ b/fs/nfs/sysfs.h
@@ -23,6 +23,8 @@ extern void nfs_sysfs_exit(void);
void nfs_netns_sysfs_setup(struct nfs_net *netns, struct net *net);
void nfs_netns_sysfs_destroy(struct nfs_net *netns);
+void nfs_sysfs_link_rpc_client(struct nfs_server *server,
+ struct rpc_clnt *clnt, const char *sysfs_prefix);
void nfs_sysfs_add_server(struct nfs_server *s);
void nfs_sysfs_move_server_to_sb(struct super_block *s);
void nfs_sysfs_move_sb_to_server(struct nfs_server *s);