]> git.karo-electronics.de Git - linux-beck.git/commit
NFS: use dynamically computed compound_hdr.replen for xdr_inline_pages offset
authorBenny Halevy <bhalevy@panasas.com>
Wed, 1 Apr 2009 13:22:09 +0000 (09:22 -0400)
committerBenny Halevy <bhalevy@panasas.com>
Wed, 17 Jun 2009 17:46:34 +0000 (10:46 -0700)
commit28f566942c6b1d929f5e240e69e7081b77b238d3
tree65b60263ac95d17de9a68f5245b52070d2bfb2e1
parentdadf0c2767ce7772fc4ff82044f3ba5823e5b79f
NFS: use dynamically computed compound_hdr.replen for xdr_inline_pages offset

As Trond suggested, rather than passing a constant to xdr_inline_pages,
keep a running count of the expected reply bytes.  In preparation for
nfs41, where additional op sequence are expteced when talking to nfs41
servers.

[NFS: cb_compoundhdr.replen is in words not bytes]
Signed-off-by: Benny Halevy <bhalevy@panasas.com>
[nfs41: get fs_locations replen before encoding the GETATTR]
Signed-off-by: Benny Halevy <bhalevy@panasas.com>
[nfs41: get getacl replen before encoding the GETATTR]
Signed-off-by: Benny Halevy <bhalevy@panasas.com>
Signed-off-by: Trond Myklebust <Trond.Myklebust@netapp.com>
fs/nfs/nfs4xdr.c