]> git.baikalelectronics.ru Git - kernel.git/commit
nfsd4: better estimate of getattr response size
authorJ. Bruce Fields <bfields@redhat.com>
Sun, 23 Mar 2014 16:01:48 +0000 (12:01 -0400)
committerJ. Bruce Fields <bfields@redhat.com>
Fri, 30 May 2014 21:32:06 +0000 (17:32 -0400)
commitdff3e636cc9fbffbc596b0e8d8c10737fffb68b0
tree46e1a02bc88ba8f9c56f1c9613bb0092448d4783
parentf4d174e6eac3b8c8a9498845d0f52de6f179936f
nfsd4: better estimate of getattr response size

We plan to use this estimate to decide whether or not to allow zero-copy
reads.  Currently we're assuming all getattr's are a page, which can be
both too small (ACLs e.g. may be arbitrarily long) and too large (after
an upcoming read patch this will unnecessarily prevent zero copy reads
in any read compound also containing a getattr).

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