nfsd: fix nfsd4_encode_open buffer space reservation
authorBenny Halevy <bhalevy@panasas.com>
Tue, 12 Aug 2008 17:44:41 +0000 (20:44 +0300)
committerJ. Bruce Fields <bfields@citi.umich.edu>
Mon, 29 Sep 2008 21:56:58 +0000 (17:56 -0400)
commit5033b77a931a12bc7395c1834fa50f6d477be3ae
tree4c8a7b7c263b93290afb6795cb93a87dd3471909
parentc47b2ca42e848e2dce122acbefa0de59320f5683
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>
fs/nfsd/nfs4xdr.c