summaryrefslogtreecommitdiffstats
path: root/fs/nfs/nfs4xdr.c
diff options
context:
space:
mode:
authorFred Isaman2008-03-13 14:26:30 +0100
committerTrond Myklebust2008-03-14 18:47:17 +0100
commit2f42b5d043ee271d1e5d30ecd77186b6c4d4e534 (patch)
tree4abafc6f0d732a1e68ba40ecfa578c25a3054a31 /fs/nfs/nfs4xdr.c
parentSUNRPC: Add a helper rpcauth_lookup_generic_cred() (diff)
downloadkernel-qcow2-linux-2f42b5d043ee271d1e5d30ecd77186b6c4d4e534.tar.gz
kernel-qcow2-linux-2f42b5d043ee271d1e5d30ecd77186b6c4d4e534.tar.xz
kernel-qcow2-linux-2f42b5d043ee271d1e5d30ecd77186b6c4d4e534.zip
NFS: fix encode_fsinfo_maxsz
The previous value was not taking into account space for bitmap array size. Signed-off-by: Fred Isaman <iisaman@citi.umich.edu> Signed-off-by: Benny Halevy <bhalevy@panasas.com> Signed-off-by: Trond Myklebust <Trond.Myklebust@netapp.com>
Diffstat (limited to 'fs/nfs/nfs4xdr.c')
-rw-r--r--fs/nfs/nfs4xdr.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/nfs/nfs4xdr.c b/fs/nfs/nfs4xdr.c
index db1ed9c46ede..37421dd4805d 100644
--- a/fs/nfs/nfs4xdr.c
+++ b/fs/nfs/nfs4xdr.c
@@ -110,7 +110,7 @@ static int nfs4_stat_to_errno(int);
#define decode_savefh_maxsz (op_decode_hdr_maxsz)
#define encode_restorefh_maxsz (op_encode_hdr_maxsz)
#define decode_restorefh_maxsz (op_decode_hdr_maxsz)
-#define encode_fsinfo_maxsz (op_encode_hdr_maxsz + 2)
+#define encode_fsinfo_maxsz (encode_getattr_maxsz)
#define decode_fsinfo_maxsz (op_decode_hdr_maxsz + 11)
#define encode_renew_maxsz (op_encode_hdr_maxsz + 3)
#define decode_renew_maxsz (op_decode_hdr_maxsz)