]> git.karo-electronics.de Git - karo-tx-linux.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>
Wed, 28 May 2014 18:52:59 +0000 (14:52 -0400)
commit2dedc1f62b3ab71c2c620b5426e9d0296acf5135
tree75c30ff24bf279a587856264b08c59494d0e6406
parent68f1a828e5190cf7a16e4de98a267754237185a8
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