|
@@ -530,14 +530,10 @@ static int nfs4_stat_to_errno(int);
|
|
|
decode_setclientid_maxsz)
|
|
|
#define NFS4_enc_setclientid_confirm_sz \
|
|
|
(compound_encode_hdr_maxsz + \
|
|
|
- encode_setclientid_confirm_maxsz + \
|
|
|
- encode_putrootfh_maxsz + \
|
|
|
- encode_fsinfo_maxsz)
|
|
|
+ encode_setclientid_confirm_maxsz)
|
|
|
#define NFS4_dec_setclientid_confirm_sz \
|
|
|
(compound_decode_hdr_maxsz + \
|
|
|
- decode_setclientid_confirm_maxsz + \
|
|
|
- decode_putrootfh_maxsz + \
|
|
|
- decode_fsinfo_maxsz)
|
|
|
+ decode_setclientid_confirm_maxsz)
|
|
|
#define NFS4_enc_lock_sz (compound_encode_hdr_maxsz + \
|
|
|
encode_sequence_maxsz + \
|
|
|
encode_putfh_maxsz + \
|
|
@@ -2608,12 +2604,9 @@ static void nfs4_xdr_enc_setclientid_confirm(struct rpc_rqst *req,
|
|
|
struct compound_hdr hdr = {
|
|
|
.nops = 0,
|
|
|
};
|
|
|
- const u32 lease_bitmap[3] = { FATTR4_WORD0_LEASE_TIME };
|
|
|
|
|
|
encode_compound_hdr(xdr, req, &hdr);
|
|
|
encode_setclientid_confirm(xdr, arg, &hdr);
|
|
|
- encode_putrootfh(xdr, &hdr);
|
|
|
- encode_fsinfo(xdr, lease_bitmap, &hdr);
|
|
|
encode_nops(&hdr);
|
|
|
}
|
|
|
|
|
@@ -6647,8 +6640,7 @@ static int nfs4_xdr_dec_setclientid(struct rpc_rqst *req,
|
|
|
* Decode SETCLIENTID_CONFIRM response
|
|
|
*/
|
|
|
static int nfs4_xdr_dec_setclientid_confirm(struct rpc_rqst *req,
|
|
|
- struct xdr_stream *xdr,
|
|
|
- struct nfs_fsinfo *fsinfo)
|
|
|
+ struct xdr_stream *xdr)
|
|
|
{
|
|
|
struct compound_hdr hdr;
|
|
|
int status;
|
|
@@ -6656,10 +6648,6 @@ static int nfs4_xdr_dec_setclientid_confirm(struct rpc_rqst *req,
|
|
|
status = decode_compound_hdr(xdr, &hdr);
|
|
|
if (!status)
|
|
|
status = decode_setclientid_confirm(xdr);
|
|
|
- if (!status)
|
|
|
- status = decode_putrootfh(xdr);
|
|
|
- if (!status)
|
|
|
- status = decode_fsinfo(xdr, fsinfo);
|
|
|
return status;
|
|
|
}
|
|
|
|