diff options
author | Jonathan Herman <hermanjl@cs.unc.edu> | 2013-01-17 16:15:55 -0500 |
---|---|---|
committer | Jonathan Herman <hermanjl@cs.unc.edu> | 2013-01-17 16:15:55 -0500 |
commit | 8dea78da5cee153b8af9c07a2745f6c55057fe12 (patch) | |
tree | a8f4d49d63b1ecc92f2fddceba0655b2472c5bd9 /include/linux/cleancache.h | |
parent | 406089d01562f1e2bf9f089fd7637009ebaad589 (diff) |
Patched in Tegra support.
Diffstat (limited to 'include/linux/cleancache.h')
-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 42e55deee75..04ffb2e6c9d 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 (*invalidate_page)(int, struct cleancache_filekey, pgoff_t); | 31 | void (*flush_page)(int, struct cleancache_filekey, pgoff_t); |
32 | void (*invalidate_inode)(int, struct cleancache_filekey); | 32 | void (*flush_inode)(int, struct cleancache_filekey); |
33 | void (*invalidate_fs)(int); | 33 | void (*flush_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_invalidate_page(struct address_space *, struct page *); | 42 | extern void __cleancache_flush_page(struct address_space *, struct page *); |
43 | extern void __cleancache_invalidate_inode(struct address_space *); | 43 | extern void __cleancache_flush_inode(struct address_space *); |
44 | extern void __cleancache_invalidate_fs(struct super_block *); | 44 | extern void __cleancache_flush_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_invalidate_page(struct address_space *mapping, | 102 | static inline void cleancache_flush_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_invalidate_page(mapping, page); | 107 | __cleancache_flush_page(mapping, page); |
108 | } | 108 | } |
109 | 109 | ||
110 | static inline void cleancache_invalidate_inode(struct address_space *mapping) | 110 | static inline void cleancache_flush_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_invalidate_inode(mapping); | 113 | __cleancache_flush_inode(mapping); |
114 | } | 114 | } |
115 | 115 | ||
116 | static inline void cleancache_invalidate_fs(struct super_block *sb) | 116 | static inline void cleancache_flush_fs(struct super_block *sb) |
117 | { | 117 | { |
118 | if (cleancache_enabled) | 118 | if (cleancache_enabled) |
119 | __cleancache_invalidate_fs(sb); | 119 | __cleancache_flush_fs(sb); |
120 | } | 120 | } |
121 | 121 | ||
122 | #endif /* _LINUX_CLEANCACHE_H */ | 122 | #endif /* _LINUX_CLEANCACHE_H */ |