summaryrefslogtreecommitdiffstats
path: root/fs/nfsd
diff options
context:
space:
mode:
authorJ. Bruce Fields <bfields@redhat.com>2014-03-23 09:34:22 -0700
committerJ. Bruce Fields <bfields@redhat.com>2014-05-30 17:32:07 -0400
commitccae70a9ee415a89b70e97a36886ab55191ebaea (patch)
tree9863938c2e4764818fa0baa4c0393f0d04dafab8 /fs/nfsd
parentb86cef60dafcbdf5a19adfa990c2c1672222e677 (diff)
downloadop-kernel-dev-ccae70a9ee415a89b70e97a36886ab55191ebaea.zip
op-kernel-dev-ccae70a9ee415a89b70e97a36886ab55191ebaea.tar.gz
nfsd4: estimate sequence response size
Otherwise a following patch would turn off all 4.1 zero-copy reads. Signed-off-by: J. Bruce Fields <bfields@redhat.com>
Diffstat (limited to 'fs/nfsd')
-rw-r--r--fs/nfsd/nfs4proc.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/fs/nfsd/nfs4proc.c b/fs/nfsd/nfs4proc.c
index 7507eff..2d786b8 100644
--- a/fs/nfsd/nfs4proc.c
+++ b/fs/nfsd/nfs4proc.c
@@ -1565,6 +1565,12 @@ static inline u32 nfsd4_rename_rsize(struct svc_rqst *rqstp, struct nfsd4_op *op
+ op_encode_change_info_maxsz) * sizeof(__be32);
}
+static inline u32 nfsd4_sequence_rsize(struct svc_rqst *rqstp,
+ struct nfsd4_op *op)
+{
+ return NFS4_MAX_SESSIONID_LEN + 20;
+}
+
static inline u32 nfsd4_setattr_rsize(struct svc_rqst *rqstp, struct nfsd4_op *op)
{
return (op_encode_hdr_size + nfs4_fattr_bitmap_maxsz) * sizeof(__be32);
OpenPOWER on IntegriCloud