aboutsummaryrefslogtreecommitdiffstats
path: root/fs/nfs/nfs4xdr.c
diff options
context:
space:
mode:
authorChuck Lever <chuck.lever@oracle.com>2007-05-08 18:23:28 -0400
committerTrond Myklebust <Trond.Myklebust@netapp.com>2007-05-09 17:58:00 -0400
commit6ce7dc940701cf3fde3c6e826a696b333092cbb1 (patch)
tree0894788349bae7b0d1707dcab98505b5ada8a3ef /fs/nfs/nfs4xdr.c
parentaa3d1faebe6e214cd96be0e587571477ff6fd9fc (diff)
NFS: NFS client underestimates how large an NFSv4 SETATTR reply can be
The maximum size of an NFSv4 SETATTR compound reply should include the GETATTR operation that we send. Signed-off-by: Chuck Lever <chuck.lever@oracle.com> Signed-off-by: Trond Myklebust <Trond.Myklebust@netapp.com>
Diffstat (limited to 'fs/nfs/nfs4xdr.c')
-rw-r--r--fs/nfs/nfs4xdr.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/fs/nfs/nfs4xdr.c b/fs/nfs/nfs4xdr.c
index b8c28f2380a5..f1e2b8cdf33c 100644
--- a/fs/nfs/nfs4xdr.c
+++ b/fs/nfs/nfs4xdr.c
@@ -224,7 +224,8 @@ static int nfs4_stat_to_errno(int);
224 encode_getattr_maxsz) 224 encode_getattr_maxsz)
225#define NFS4_dec_setattr_sz (compound_decode_hdr_maxsz + \ 225#define NFS4_dec_setattr_sz (compound_decode_hdr_maxsz + \
226 decode_putfh_maxsz + \ 226 decode_putfh_maxsz + \
227 op_decode_hdr_maxsz + 3) 227 op_decode_hdr_maxsz + 3 + \
228 nfs4_fattr_maxsz)
228#define NFS4_enc_fsinfo_sz (compound_encode_hdr_maxsz + \ 229#define NFS4_enc_fsinfo_sz (compound_encode_hdr_maxsz + \
229 encode_putfh_maxsz + \ 230 encode_putfh_maxsz + \
230 encode_fsinfo_maxsz) 231 encode_fsinfo_maxsz)