Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit f34e432b authored by J. Bruce Fields's avatar J. Bruce Fields
Browse files

nfsd4: fix write reply size estimate



The write reply also includes count and stable_how.

Signed-off-by: default avatarJ. Bruce Fields <bfields@redhat.com>
parent 622f560e
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -1528,7 +1528,7 @@ static inline u32 nfsd4_setclientid_rsize(struct svc_rqst *rqstp, struct nfsd4_o

static inline u32 nfsd4_write_rsize(struct svc_rqst *rqstp, struct nfsd4_op *op)
{
	return (op_encode_hdr_size + op_encode_verifier_maxsz) * sizeof(__be32);
	return (op_encode_hdr_size + 2 + op_encode_verifier_maxsz) * sizeof(__be32);
}

static inline u32 nfsd4_exchange_id_rsize(struct svc_rqst *rqstp, struct nfsd4_op *op)