aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBenny Halevy <bhalevy@panasas.com>2008-08-12 13:44:41 -0400
committerJ. Bruce Fields <bfields@citi.umich.edu>2008-09-29 17:56:58 -0400
commit5033b77a931a12bc7395c1834fa50f6d477be3ae (patch)
tree4c8a7b7c263b93290afb6795cb93a87dd3471909
parentc47b2ca42e848e2dce122acbefa0de59320f5683 (diff)
nfsd: fix nfsd4_encode_open buffer space reservation
nfsd4_encode_open first reservation is currently for 36 + sizeof(stateid_t) while it writes after the stateid a cinfo (20 bytes) and 5 more 4-bytes words, for a total of 40 + sizeof(stateid_t). Signed-off-by: Benny Halevy <bhalevy@panasas.com> Signed-off-by: J. Bruce Fields <bfields@citi.umich.edu>
-rw-r--r--fs/nfsd/nfs4xdr.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/nfsd/nfs4xdr.c b/fs/nfsd/nfs4xdr.c
index d7e4bd50ed3c..ace39349670a 100644
--- a/fs/nfsd/nfs4xdr.c
+++ b/fs/nfsd/nfs4xdr.c
@@ -2133,7 +2133,7 @@ nfsd4_encode_open(struct nfsd4_compoundres *resp, __be32 nfserr, struct nfsd4_op
2133 if (nfserr) 2133 if (nfserr)
2134 goto out; 2134 goto out;
2135 2135
2136 RESERVE_SPACE(36 + sizeof(stateid_t)); 2136 RESERVE_SPACE(40 + sizeof(stateid_t));
2137 WRITE32(open->op_stateid.si_generation); 2137 WRITE32(open->op_stateid.si_generation);
2138 WRITEMEM(&open->op_stateid.si_opaque, sizeof(stateid_opaque_t)); 2138 WRITEMEM(&open->op_stateid.si_opaque, sizeof(stateid_opaque_t));
2139 WRITECINFO(open->op_cinfo); 2139 WRITECINFO(open->op_cinfo);