diff options
Diffstat (limited to 'include/linux/cleancache.h')
| -rw-r--r-- | include/linux/cleancache.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/include/linux/cleancache.h b/include/linux/cleancache.h index 42e55deee757..4ce9056b31a8 100644 --- a/include/linux/cleancache.h +++ b/include/linux/cleancache.h | |||
| @@ -33,7 +33,7 @@ struct cleancache_ops { | |||
| 33 | void (*invalidate_fs)(int); | 33 | void (*invalidate_fs)(int); |
| 34 | }; | 34 | }; |
| 35 | 35 | ||
| 36 | extern struct cleancache_ops | 36 | extern struct cleancache_ops * |
| 37 | cleancache_register_ops(struct cleancache_ops *ops); | 37 | cleancache_register_ops(struct cleancache_ops *ops); |
| 38 | extern void __cleancache_init_fs(struct super_block *); | 38 | 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 *); |
| @@ -42,9 +42,9 @@ extern void __cleancache_put_page(struct page *); | |||
| 42 | extern void __cleancache_invalidate_page(struct address_space *, struct page *); | 42 | extern void __cleancache_invalidate_page(struct address_space *, struct page *); |
| 43 | extern void __cleancache_invalidate_inode(struct address_space *); | 43 | extern void __cleancache_invalidate_inode(struct address_space *); |
| 44 | extern void __cleancache_invalidate_fs(struct super_block *); | 44 | extern void __cleancache_invalidate_fs(struct super_block *); |
| 45 | extern int cleancache_enabled; | ||
| 46 | 45 | ||
| 47 | #ifdef CONFIG_CLEANCACHE | 46 | #ifdef CONFIG_CLEANCACHE |
| 47 | #define cleancache_enabled (1) | ||
| 48 | static inline bool cleancache_fs_enabled(struct page *page) | 48 | static inline bool cleancache_fs_enabled(struct page *page) |
| 49 | { | 49 | { |
| 50 | return page->mapping->host->i_sb->cleancache_poolid >= 0; | 50 | return page->mapping->host->i_sb->cleancache_poolid >= 0; |
