summaryrefslogtreecommitdiff
path: root/fs/nfs/nfs4client.c
diff options
context:
space:
mode:
authorPeng Tao <tao.peng@primarydata.com>2014-05-30 10:15:58 (GMT)
committerTom Haynes <loghyr@primarydata.com>2015-02-03 19:06:34 (GMT)
commit30626f9c32f0ad5e2c4173f10fb4b1358bbba6ec (patch)
treeaaa2365a2d206f1ab4e7b93e21193ad7085f1221 /fs/nfs/nfs4client.c
parent1a04c6e1a26a43305fe124a0978a3e4be861af89 (diff)
downloadlinux-30626f9c32f0ad5e2c4173f10fb4b1358bbba6ec.tar.xz
nfs41: allow LD to choose DS connection version/minor_version
flexfile layout may need to set such when making DS connections. Signed-off-by: Peng Tao <tao.peng@primarydata.com> Signed-off-by: Tom Haynes <Thomas.Haynes@primarydata.com>
Diffstat (limited to 'fs/nfs/nfs4client.c')
-rw-r--r--fs/nfs/nfs4client.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/fs/nfs/nfs4client.c b/fs/nfs/nfs4client.c
index 62d93a1..102d967 100644
--- a/fs/nfs/nfs4client.c
+++ b/fs/nfs/nfs4client.c
@@ -850,14 +850,14 @@ error:
struct nfs_client *nfs4_set_ds_client(struct nfs_client* mds_clp,
const struct sockaddr *ds_addr, int ds_addrlen,
int ds_proto, unsigned int ds_timeo, unsigned int ds_retrans,
- rpc_authflavor_t au_flavor)
+ u32 minor_version, rpc_authflavor_t au_flavor)
{
struct nfs_client_initdata cl_init = {
.addr = ds_addr,
.addrlen = ds_addrlen,
.nfs_mod = &nfs_v4,
.proto = ds_proto,
- .minorversion = mds_clp->cl_minorversion,
+ .minorversion = minor_version,
.net = mds_clp->cl_net,
};
struct rpc_timeout ds_timeout;