diff options
author | Konrad Rzeszutek Wilk <konrad.wilk@oracle.com> | 2012-03-19 12:12:19 -0400 |
---|---|---|
committer | Konrad Rzeszutek Wilk <konrad.wilk@oracle.com> | 2012-03-19 12:12:19 -0400 |
commit | 16c0cfa425b8e1488f7a1873bd112a7a099325f0 (patch) | |
tree | eeba5728a8072096279c55ffc10a5ca7ac0ddf05 /include/linux | |
parent | 94574d9a4c236e8bd19721b4adb0ea30ef446901 (diff) | |
parent | 072611ed1f291053a74b28b813d683a09495eba7 (diff) |
Merge branch 'stable/cleancache.v13' into linux-next
* stable/cleancache.v13:
mm: cleancache: Use __read_mostly as appropiate.
mm: cleancache: report statistics via debugfs instead of sysfs.
mm: zcache/tmem/cleancache: s/flush/invalidate/
mm: cleancache: s/flush/invalidate/
Diffstat (limited to 'include/linux')
-rw-r--r-- | include/linux/cleancache.h | 24 |
1 files changed, 12 insertions, 12 deletions
diff --git a/include/linux/cleancache.h b/include/linux/cleancache.h index 04ffb2e6c9d0..42e55deee757 100644 --- a/include/linux/cleancache.h +++ b/include/linux/cleancache.h | |||
@@ -28,9 +28,9 @@ struct cleancache_ops { | |||
28 | pgoff_t, struct page *); | 28 | pgoff_t, struct page *); |
29 | void (*put_page)(int, struct cleancache_filekey, | 29 | void (*put_page)(int, struct cleancache_filekey, |
30 | pgoff_t, struct page *); | 30 | pgoff_t, struct page *); |
31 | void (*flush_page)(int, struct cleancache_filekey, pgoff_t); | 31 | void (*invalidate_page)(int, struct cleancache_filekey, pgoff_t); |
32 | void (*flush_inode)(int, struct cleancache_filekey); | 32 | void (*invalidate_inode)(int, struct cleancache_filekey); |
33 | void (*flush_fs)(int); | 33 | void (*invalidate_fs)(int); |
34 | }; | 34 | }; |
35 | 35 | ||
36 | extern struct cleancache_ops | 36 | extern struct cleancache_ops |
@@ -39,9 +39,9 @@ extern void __cleancache_init_fs(struct super_block *); | |||
39 | extern void __cleancache_init_shared_fs(char *, struct super_block *); | 39 | extern void __cleancache_init_shared_fs(char *, struct super_block *); |
40 | extern int __cleancache_get_page(struct page *); | 40 | extern int __cleancache_get_page(struct page *); |
41 | extern void __cleancache_put_page(struct page *); | 41 | extern void __cleancache_put_page(struct page *); |
42 | extern void __cleancache_flush_page(struct address_space *, struct page *); | 42 | extern void __cleancache_invalidate_page(struct address_space *, struct page *); |
43 | extern void __cleancache_flush_inode(struct address_space *); | 43 | extern void __cleancache_invalidate_inode(struct address_space *); |
44 | extern void __cleancache_flush_fs(struct super_block *); | 44 | extern void __cleancache_invalidate_fs(struct super_block *); |
45 | extern int cleancache_enabled; | 45 | extern int cleancache_enabled; |
46 | 46 | ||
47 | #ifdef CONFIG_CLEANCACHE | 47 | #ifdef CONFIG_CLEANCACHE |
@@ -99,24 +99,24 @@ static inline void cleancache_put_page(struct page *page) | |||
99 | __cleancache_put_page(page); | 99 | __cleancache_put_page(page); |
100 | } | 100 | } |
101 | 101 | ||
102 | static inline void cleancache_flush_page(struct address_space *mapping, | 102 | static inline void cleancache_invalidate_page(struct address_space *mapping, |
103 | struct page *page) | 103 | struct page *page) |
104 | { | 104 | { |
105 | /* careful... page->mapping is NULL sometimes when this is called */ | 105 | /* careful... page->mapping is NULL sometimes when this is called */ |
106 | if (cleancache_enabled && cleancache_fs_enabled_mapping(mapping)) | 106 | if (cleancache_enabled && cleancache_fs_enabled_mapping(mapping)) |
107 | __cleancache_flush_page(mapping, page); | 107 | __cleancache_invalidate_page(mapping, page); |
108 | } | 108 | } |
109 | 109 | ||
110 | static inline void cleancache_flush_inode(struct address_space *mapping) | 110 | static inline void cleancache_invalidate_inode(struct address_space *mapping) |
111 | { | 111 | { |
112 | if (cleancache_enabled && cleancache_fs_enabled_mapping(mapping)) | 112 | if (cleancache_enabled && cleancache_fs_enabled_mapping(mapping)) |
113 | __cleancache_flush_inode(mapping); | 113 | __cleancache_invalidate_inode(mapping); |
114 | } | 114 | } |
115 | 115 | ||
116 | static inline void cleancache_flush_fs(struct super_block *sb) | 116 | static inline void cleancache_invalidate_fs(struct super_block *sb) |
117 | { | 117 | { |
118 | if (cleancache_enabled) | 118 | if (cleancache_enabled) |
119 | __cleancache_flush_fs(sb); | 119 | __cleancache_invalidate_fs(sb); |
120 | } | 120 | } |
121 | 121 | ||
122 | #endif /* _LINUX_CLEANCACHE_H */ | 122 | #endif /* _LINUX_CLEANCACHE_H */ |