NFS: Fix byte accounting for generic NFS reads
authorChuck Lever <chuck.lever@oracle.com>
Mon, 1 Feb 2010 19:17:23 +0000 (14:17 -0500)
committerTrond Myklebust <Trond.Myklebust@netapp.com>
Wed, 10 Feb 2010 13:31:03 +0000 (08:31 -0500)
commit4184dcf2dbde481b34d370e1704f2b91a8c9f0d1
treefed7dd67648a78c00bd687ed38bdd133fe45124a
parentc2459dc46269728e4a080ec8d5a316b2bba2e142
NFS: Fix byte accounting for generic NFS reads

Currently, the NFS I/O counters count the number of bytes requested
by applications, rather than the number of bytes actually read by the
system calls.

The number of bytes requested for reads is actually not that useful,
because the value is usually a buffer size for reads.  That is, that
requested number is usually a maximum, and frequently doesn't reflect
the actual number of bytes read.

Signed-off-by: Chuck Lever <chuck.lever@oracle.com>
Signed-off-by: Trond Myklebust <Trond.Myklebust@netapp.com>
fs/nfs/file.c