Commit f4fc9f3d authored by Trond Myklebust's avatar Trond Myklebust Committed by Ben Hutchings

NFSv4: Fix the underestimation of delegation XDR space reservation

commit 5a1f6d9e upstream.

Account for the "space_limit" field in struct open_write_delegation4.

Fixes: 2cebf828 ("NFSv4: Fix the underestimate of NFSv4 open request size")
Signed-off-by: default avatarTrond Myklebust <trond.myklebust@primarydata.com>
Reviewed-by: default avatarChuck Lever <chuck.lever@oracle.com>
Signed-off-by: default avatarAnna Schumaker <Anna.Schumaker@Netapp.com>
Signed-off-by: default avatarBen Hutchings <ben@decadent.org.uk>
parent 604a3c40
...@@ -149,8 +149,10 @@ static int nfs4_stat_to_errno(int); ...@@ -149,8 +149,10 @@ static int nfs4_stat_to_errno(int);
open_owner_id_maxsz + \ open_owner_id_maxsz + \
encode_opentype_maxsz + \ encode_opentype_maxsz + \
encode_claim_null_maxsz) encode_claim_null_maxsz)
#define decode_space_limit_maxsz (3)
#define decode_ace_maxsz (3 + nfs4_owner_maxsz) #define decode_ace_maxsz (3 + nfs4_owner_maxsz)
#define decode_delegation_maxsz (1 + decode_stateid_maxsz + 1 + \ #define decode_delegation_maxsz (1 + decode_stateid_maxsz + 1 + \
decode_space_limit_maxsz + \
decode_ace_maxsz) decode_ace_maxsz)
#define decode_change_info_maxsz (5) #define decode_change_info_maxsz (5)
#define decode_open_maxsz (op_decode_hdr_maxsz + \ #define decode_open_maxsz (op_decode_hdr_maxsz + \
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment