14 #include <linux/module.h>
42 static u64 cleancache_succ_gets;
43 static u64 cleancache_failed_gets;
44 static u64 cleancache_puts;
45 static u64 cleancache_invalidates;
80 static int cleancache_get_key(
struct inode *
inode,
83 int (*fhfn)(
struct inode *,
__u32 *fh,
int *,
struct inode *);
92 if (len <= 0 || len == 255)
115 pool_id = page->
mapping->host->i_sb->cleancache_poolid;
119 if (cleancache_get_key(page->
mapping->host, &key) < 0)
124 cleancache_succ_gets++;
126 cleancache_failed_gets++;
144 pool_id = page->
mapping->host->i_sb->cleancache_poolid;
146 cleancache_get_key(page->
mapping->host, &key) >= 0) {
161 int pool_id = mapping->
host->i_sb->cleancache_poolid;
166 if (cleancache_get_key(mapping->
host, &key) >= 0) {
169 cleancache_invalidates++;
182 int pool_id = mapping->
host->i_sb->cleancache_poolid;
185 if (pool_id >= 0 && cleancache_get_key(mapping->
host, &key) >= 0)
205 static int __init init_cleancache(
void)
207 #ifdef CONFIG_DEBUG_FS
213 root, &cleancache_failed_gets);
216 root, &cleancache_invalidates);