aboutsummaryrefslogtreecommitdiffstats
path: root/fs/nfs
diff options
context:
space:
mode:
authorTrond Myklebust <Trond.Myklebust@netapp.com>2010-06-16 09:52:27 -0400
committerTrond Myklebust <Trond.Myklebust@netapp.com>2010-06-22 13:24:02 -0400
commita4432345352c2be157ed844603147ac2c82f209c (patch)
tree479bae6974b64b338c18e5ae5ecb93b25cd6f90b /fs/nfs
parente047a10c1293ee0ab20258154e7f3ebf8ad502d6 (diff)
NFSv41: Deprecate nfs_client->cl_minorversion
Signed-off-by: Trond Myklebust <Trond.Myklebust@netapp.com>
Diffstat (limited to 'fs/nfs')
-rw-r--r--fs/nfs/nfs4xdr.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/fs/nfs/nfs4xdr.c b/fs/nfs/nfs4xdr.c
index 65c8dae4b267..1f7781d636ae 100644
--- a/fs/nfs/nfs4xdr.c
+++ b/fs/nfs/nfs4xdr.c
@@ -1172,7 +1172,7 @@ static inline void encode_createmode(struct xdr_stream *xdr, const struct nfs_op
1172 break; 1172 break;
1173 default: 1173 default:
1174 clp = arg->server->nfs_client; 1174 clp = arg->server->nfs_client;
1175 if (clp->cl_minorversion > 0) { 1175 if (clp->cl_mvops->minor_version > 0) {
1176 if (nfs4_has_persistent_session(clp)) { 1176 if (nfs4_has_persistent_session(clp)) {
1177 *p = cpu_to_be32(NFS4_CREATE_GUARDED); 1177 *p = cpu_to_be32(NFS4_CREATE_GUARDED);
1178 encode_attrs(xdr, arg->u.attrs, arg->server); 1178 encode_attrs(xdr, arg->u.attrs, arg->server);
@@ -1704,7 +1704,7 @@ static u32 nfs4_xdr_minorversion(const struct nfs4_sequence_args *args)
1704{ 1704{
1705#if defined(CONFIG_NFS_V4_1) 1705#if defined(CONFIG_NFS_V4_1)
1706 if (args->sa_session) 1706 if (args->sa_session)
1707 return args->sa_session->clp->cl_minorversion; 1707 return args->sa_session->clp->cl_mvops->minor_version;
1708#endif /* CONFIG_NFS_V4_1 */ 1708#endif /* CONFIG_NFS_V4_1 */
1709 return 0; 1709 return 0;
1710} 1710}
@@ -2395,7 +2395,7 @@ static int nfs4_xdr_enc_exchange_id(struct rpc_rqst *req, uint32_t *p,
2395{ 2395{
2396 struct xdr_stream xdr; 2396 struct xdr_stream xdr;
2397 struct compound_hdr hdr = { 2397 struct compound_hdr hdr = {
2398 .minorversion = args->client->cl_minorversion, 2398 .minorversion = args->client->cl_mvops->minor_version,
2399 }; 2399 };
2400 2400
2401 xdr_init_encode(&xdr, &req->rq_snd_buf, p); 2401 xdr_init_encode(&xdr, &req->rq_snd_buf, p);
@@ -2413,7 +2413,7 @@ static int nfs4_xdr_enc_create_session(struct rpc_rqst *req, uint32_t *p,
2413{ 2413{
2414 struct xdr_stream xdr; 2414 struct xdr_stream xdr;
2415 struct compound_hdr hdr = { 2415 struct compound_hdr hdr = {
2416 .minorversion = args->client->cl_minorversion, 2416 .minorversion = args->client->cl_mvops->minor_version,
2417 }; 2417 };
2418 2418
2419 xdr_init_encode(&xdr, &req->rq_snd_buf, p); 2419 xdr_init_encode(&xdr, &req->rq_snd_buf, p);
@@ -2431,7 +2431,7 @@ static int nfs4_xdr_enc_destroy_session(struct rpc_rqst *req, uint32_t *p,
2431{ 2431{
2432 struct xdr_stream xdr; 2432 struct xdr_stream xdr;
2433 struct compound_hdr hdr = { 2433 struct compound_hdr hdr = {
2434 .minorversion = session->clp->cl_minorversion, 2434 .minorversion = session->clp->cl_mvops->minor_version,
2435 }; 2435 };
2436 2436
2437 xdr_init_encode(&xdr, &req->rq_snd_buf, p); 2437 xdr_init_encode(&xdr, &req->rq_snd_buf, p);