summaryrefslogtreecommitdiffstats
path: root/fs/nfsd/nfs4state.c
diff options
context:
space:
mode:
authorJ. Bruce Fields <bfields@redhat.com>2019-03-14 21:20:19 +0100
committerJ. Bruce Fields <bfields@redhat.com>2019-07-03 23:52:50 +0200
commitbf5ed3e3bb84c39d70ad10b2f8e47ec62f4c63b1 (patch)
tree5d6020fc70f39343c50ded4f575cb905c50db922 /fs/nfsd/nfs4state.c
parentnfsd: add nfsd/clients directory (diff)
downloadlinux-bf5ed3e3bb84c39d70ad10b2f8e47ec62f4c63b1.tar.xz
linux-bf5ed3e3bb84c39d70ad10b2f8e47ec62f4c63b1.zip
nfsd: make client/ directory names small ints
We want clientid's on the wire to be randomized for reasons explained in ebd7c72c63ac "nfsd: randomize SETCLIENTID reply to help distinguish servers". But I'd rather have mostly small integers for the clients/ directory. Signed-off-by: J. Bruce Fields <bfields@redhat.com>
Diffstat (limited to 'fs/nfsd/nfs4state.c')
-rw-r--r--fs/nfsd/nfs4state.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/nfsd/nfs4state.c b/fs/nfsd/nfs4state.c
index 7d8d1fcc8831..8f9747d84525 100644
--- a/fs/nfsd/nfs4state.c
+++ b/fs/nfsd/nfs4state.c
@@ -2242,7 +2242,7 @@ static struct nfs4_client *create_client(struct xdr_netobj name,
clp->cl_cb_session = NULL;
clp->net = net;
clp->cl_nfsd_dentry = nfsd_client_mkdir(nn, &clp->cl_nfsdfs,
- clp->cl_clientid.cl_id);
+ clp->cl_clientid.cl_id - nn->clientid_base);
if (!clp->cl_nfsd_dentry) {
free_client(clp);
return NULL;