summaryrefslogtreecommitdiff
path: root/fs/nfs/nfs3client.c
diff options
context:
space:
mode:
authorTrond Myklebust <trondmy@gmail.com>2019-04-24 17:46:43 -0400
committerAnna Schumaker <Anna.Schumaker@Netapp.com>2019-04-26 16:11:54 -0400
commit1a58e8a0e5c1f188a80eb9e505bc77d78a31a4ec (patch)
tree0dc31db3ea8ca7ac3b598a7d7fef30a6496b23ac /fs/nfs/nfs3client.c
parent79caa5fad47c69874f9efc4ac3128cc3f6d36f6e (diff)
downloadlwn-1a58e8a0e5c1f188a80eb9e505bc77d78a31a4ec.tar.gz
lwn-1a58e8a0e5c1f188a80eb9e505bc77d78a31a4ec.zip
NFS: Store the credential of the mount process in the nfs_server
Store the credential of the mount process so that we can determine information such as the user namespace. Signed-off-by: Trond Myklebust <trond.myklebust@hammerspace.com> Signed-off-by: Anna Schumaker <Anna.Schumaker@Netapp.com>
Diffstat (limited to 'fs/nfs/nfs3client.c')
-rw-r--r--fs/nfs/nfs3client.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/fs/nfs/nfs3client.c b/fs/nfs/nfs3client.c
index 7879f2a0fcfd..1afdb0f7473f 100644
--- a/fs/nfs/nfs3client.c
+++ b/fs/nfs/nfs3client.c
@@ -91,6 +91,7 @@ struct nfs_client *nfs3_set_ds_client(struct nfs_server *mds_srv,
.proto = ds_proto,
.net = mds_clp->cl_net,
.timeparms = &ds_timeout,
+ .cred = mds_srv->cred,
};
struct nfs_client *clp;
char buf[INET6_ADDRSTRLEN + 1];