Skip to content

Commit f4057ff

Browse files
bcodding-rhTrond Myklebust
authored andcommitted
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>
1 parent d97c058 commit f4057ff

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

fs/nfs/nfs3client.c

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,8 @@
44
#include <linux/sunrpc/addr.h>
55
#include "internal.h"
66
#include "nfs3_fs.h"
7+
#include "netns.h"
8+
#include "sysfs.h"
79

810
#ifdef CONFIG_NFS_V3_ACL
911
static struct rpc_stat nfsacl_rpcstat = { &nfsacl_program };
@@ -31,6 +33,8 @@ static void nfs_init_server_aclclient(struct nfs_server *server)
3133
if (IS_ERR(server->client_acl))
3234
goto out_noacl;
3335

36+
nfs_sysfs_link_rpc_client(server, server->client_acl, NULL);
37+
3438
/* No errors! Assume that Sun nfsacls are supported */
3539
server->caps |= NFS_CAP_ACLS;
3640
return;

0 commit comments

Comments
 (0)