]> git.baikalelectronics.ru Git - kernel.git/commit
NFS: Add some new I/O counters for FS-Cache doing things for NFS
authorDavid Howells <dhowells@redhat.com>
Fri, 3 Apr 2009 15:42:43 +0000 (16:42 +0100)
committerDavid Howells <dhowells@redhat.com>
Fri, 3 Apr 2009 15:42:43 +0000 (16:42 +0100)
commite668eec00bae5b3181aba351d6876fe1965f968c
tree288fafe724eee5a0c67ff4c9bd437d35d3bbb9ab
parente64084e2ea41ecded2738ea7bcefa731c9eb5293
NFS: Add some new I/O counters for FS-Cache doing things for NFS

Add some new NFS I/O counters for FS-Cache doing things for NFS.  A new line is
emitted into /proc/pid/mountstats if caching is enabled that looks like:

fsc: <rok> <rfl> <wok> <wfl> <unc>

Where <rok> is the number of pages read successfully from the cache, <rfl> is
the number of failed page reads against the cache, <wok> is the number of
successful page writes to the cache, <wfl> is the number of failed page writes
to the cache, and <unc> is the number of NFS pages that have been disconnected
from the cache.

Signed-off-by: David Howells <dhowells@redhat.com>
Acked-by: Steve Dickson <steved@redhat.com>
Acked-by: Trond Myklebust <Trond.Myklebust@netapp.com>
Acked-by: Al Viro <viro@zeniv.linux.org.uk>
Tested-by: Daire Byrne <Daire.Byrne@framestore.com>
fs/nfs/iostat.h
fs/nfs/super.c
include/linux/nfs_iostat.h