summaryrefslogtreecommitdiffstats
path: root/fs/nfs
diff options
context:
space:
mode:
authorBenjamin Coddington <bcodding@redhat.com>2023-06-15 14:07:29 -0400
committerTrond Myklebust <trond.myklebust@hammerspace.com>2023-06-19 15:06:40 -0400
commitf4057ffd0e134e54a727e00c3c9b0d9a5051eadf (patch)
tree8ddc6fe44254a360a1ceda53c272d2c35c6a7a1a /fs/nfs
parentd97c05897757a5d7fa131073d04a2fb29b5836ee (diff)
downloadlinux-stable-f4057ffd0e134e54a727e00c3c9b0d9a5051eadf.tar.gz
linux-stable-f4057ffd0e134e54a727e00c3c9b0d9a5051eadf.tar.bz2
linux-stable-f4057ffd0e134e54a727e00c3c9b0d9a5051eadf.zip
NFS: add a sysfs link to the acl rpc_client
Signed-off-by: Benjamin Coddington <bcodding@redhat.com> Signed-off-by: Trond Myklebust <trond.myklebust@hammerspace.com>
Diffstat (limited to 'fs/nfs')
-rw-r--r--fs/nfs/nfs3client.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/fs/nfs/nfs3client.c b/fs/nfs/nfs3client.c
index 0844f1651e0f..eff3802c5e03 100644
--- a/fs/nfs/nfs3client.c
+++ b/fs/nfs/nfs3client.c
@@ -4,6 +4,8 @@
#include <linux/sunrpc/addr.h>
#include "internal.h"
#include "nfs3_fs.h"
+#include "netns.h"
+#include "sysfs.h"
#ifdef CONFIG_NFS_V3_ACL
static struct rpc_stat nfsacl_rpcstat = { &nfsacl_program };
@@ -31,6 +33,8 @@ static void nfs_init_server_aclclient(struct nfs_server *server)
if (IS_ERR(server->client_acl))
goto out_noacl;
+ nfs_sysfs_link_rpc_client(server, server->client_acl, NULL);
+
/* No errors! Assume that Sun nfsacls are supported */
server->caps |= NFS_CAP_ACLS;
return;