]> pilppa.com Git - linux-2.6-omap-h63xx.git/commit
FS-Cache: Add use of /proc and presentation of statistics
authorDavid Howells <dhowells@redhat.com>
Fri, 3 Apr 2009 15:42:37 +0000 (16:42 +0100)
committerDavid Howells <dhowells@redhat.com>
Fri, 3 Apr 2009 15:42:37 +0000 (16:42 +0100)
commit7394daa8c61dfda4baa687f133748fa0b599b017
tree32d2c55ed60596918ec62ce6ecca186337bf4660
parent06b3db1b9bccdc8c2c743122a89745279e5ecc46
FS-Cache: Add use of /proc and presentation of statistics

Make FS-Cache create its /proc interface and present various statistical
information through it.  Also provide the functions for updating this
information.

These features are enabled by:

CONFIG_FSCACHE_PROC
CONFIG_FSCACHE_STATS
CONFIG_FSCACHE_HISTOGRAM

The /proc directory for FS-Cache is also exported so that caching modules can
add their own statistics there too.

The FS-Cache module is loadable at this point, and the statistics files can be
examined by userspace:

cat /proc/fs/fscache/stats
cat /proc/fs/fscache/histogram

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>
Documentation/filesystems/caching/backend-api.txt
Documentation/filesystems/caching/fscache.txt
fs/fscache/Kconfig
fs/fscache/Makefile
fs/fscache/histogram.c [new file with mode: 0644]
fs/fscache/internal.h
fs/fscache/main.c
fs/fscache/proc.c [new file with mode: 0644]
fs/fscache/stats.c [new file with mode: 0644]
include/linux/fscache-cache.h