nfsd4: more precise nfsd4_max_reply
authorJ. Bruce Fields <bfields@redhat.com>
Tue, 11 Mar 2014 19:39:13 +0000 (15:39 -0400)
committerJ. Bruce Fields <bfields@redhat.com>
Fri, 30 May 2014 21:31:57 +0000 (17:31 -0400)
commit4f0cefbf389c28b0a2be34960797adb0c84ee43d
tree8ef1923fa15d4e2372e73e48df203facc4085c7c
parent8c7424cff6bd33459945646cfcbf6dc6c899ab24
nfsd4: more precise nfsd4_max_reply

It will turn out to be useful to have a more accurate estimate of reply
size; so, piggyback on the existing op reply-size estimators.

Also move nfsd4_max_reply to nfs4proc.c to get easier access to struct
nfsd4_operation and friends.  (Thanks to Christoph Hellwig for pointing
out that simplification.)

Signed-off-by: J. Bruce Fields <bfields@redhat.com>
fs/nfsd/nfs4proc.c
fs/nfsd/nfs4xdr.c
fs/nfsd/xdr4.h