mirror of
https://github.com/AuxXxilium/linux_dsm_epyc7002.git
synced 2025-01-19 07:46:24 +07:00
nfsd4: read size estimate should include padding
Signed-off-by: J. Bruce Fields <bfields@redhat.com>
This commit is contained in:
parent
24906f3237
commit
622f560e6a
@ -1489,7 +1489,7 @@ static inline u32 nfsd4_read_rsize(struct svc_rqst *rqstp, struct nfsd4_op *op)
|
||||
if (rlen > maxcount)
|
||||
rlen = maxcount;
|
||||
|
||||
return (op_encode_hdr_size + 2) * sizeof(__be32) + rlen;
|
||||
return (op_encode_hdr_size + 2 + XDR_QUADLEN(rlen)) * sizeof(__be32);
|
||||
}
|
||||
|
||||
static inline u32 nfsd4_readdir_rsize(struct svc_rqst *rqstp, struct nfsd4_op *op)
|
||||
|
Loading…
Reference in New Issue
Block a user