mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-25 06:03:36 -04:00
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>
This commit is contained in:
parent
06b3db1b9b
commit
7394daa8c6
10 changed files with 566 additions and 17 deletions
|
|
@ -29,10 +29,6 @@ struct fscache_cache_ops;
|
|||
struct fscache_object;
|
||||
struct fscache_operation;
|
||||
|
||||
#ifdef CONFIG_FSCACHE_PROC
|
||||
extern struct proc_dir_entry *proc_fscache;
|
||||
#endif
|
||||
|
||||
/*
|
||||
* cache tag definition
|
||||
*/
|
||||
|
|
|
|||
Loading…
Reference in a new issue