summaryrefslogtreecommitdiffstats
path: root/fs/nfsd/nfs4proc.c
diff options
context:
space:
mode:
authorJ. Bruce Fields <bfields@redhat.com>2014-05-16 21:24:56 -0400
committerJ. Bruce Fields <bfields@redhat.com>2014-05-23 09:03:43 -0400
commitf34e432b673781175c782fa8c5a619114340ba38 (patch)
treedc273070f7cba680bfe7d66b0bd1c6d09235dea9 /fs/nfsd/nfs4proc.c
parent622f560e6afbd54cdd9b9a416ddab8114baedd76 (diff)
downloadop-kernel-dev-f34e432b673781175c782fa8c5a619114340ba38.zip
op-kernel-dev-f34e432b673781175c782fa8c5a619114340ba38.tar.gz
nfsd4: fix write reply size estimate
The write reply also includes count and stable_how. Signed-off-by: J. Bruce Fields <bfields@redhat.com>
Diffstat (limited to 'fs/nfsd/nfs4proc.c')
-rw-r--r--fs/nfsd/nfs4proc.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/nfsd/nfs4proc.c b/fs/nfsd/nfs4proc.c
index 77c4369..9d60a1c 100644
--- a/fs/nfsd/nfs4proc.c
+++ b/fs/nfsd/nfs4proc.c
@@ -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)
OpenPOWER on IntegriCloud