diff options
author | J. Bruce Fields <bfields@redhat.com> | 2019-03-14 21:20:19 +0100 |
---|---|---|
committer | J. Bruce Fields <bfields@redhat.com> | 2019-07-03 23:52:50 +0200 |
commit | bf5ed3e3bb84c39d70ad10b2f8e47ec62f4c63b1 (patch) | |
tree | 5d6020fc70f39343c50ded4f575cb905c50db922 /fs/nfsd/nfs4state.c | |
parent | nfsd: add nfsd/clients directory (diff) | |
download | linux-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.c | 2 |
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; |