diff options
author | Dan Magenheimer <dan.magenheimer@oracle.com> | 2011-09-21 11:56:28 -0400 |
---|---|---|
committer | Konrad Rzeszutek Wilk <konrad.wilk@oracle.com> | 2012-01-23 16:06:24 -0500 |
commit | 3167760f83899ccda312b9ad9306ec9e5dda06d4 (patch) | |
tree | a040add1a9b267cb0fa92847c88526c1329a258b /include/linux/cleancache.h | |
parent | 972b2c719990f91eb3b2310d44ef8a2d38955a14 (diff) |
mm: cleancache: s/flush/invalidate/
Per akpm suggestions alter the use of the term flush to be
invalidate. The next patch will do this across all MM.
This change is completely cosmetic.
[v9: akpm@linux-foundation.org: change "flush" to "invalidate", part 3]
Signed-off-by: Dan Magenheimer <dan.magenheimer@oracle.com>
Cc: Kamezawa Hiroyuki <kamezawa.hiroyu@jp.fujitsu.com>
Cc: Jan Beulich <JBeulich@novell.com>
Reviewed-by: Seth Jennings <sjenning@linux.vnet.ibm.com>
Cc: Jeremy Fitzhardinge <jeremy@goop.org>
Cc: Hugh Dickins <hughd@google.com>
Cc: Johannes Weiner <hannes@cmpxchg.org>
Cc: Nitin Gupta <ngupta@vflare.org>
Cc: Matthew Wilcox <matthew@wil.cx>
Cc: Chris Mason <chris.mason@oracle.com>
Cc: Rik Riel <riel@redhat.com>
Cc: Andrew Morton <akpm@linux-foundation.org>
[v10: Fixed fs: move code out of buffer.c conflict change]
Signed-off-by: Konrad Rzeszutek Wilk <konrad.wilk@oracle.com>
Diffstat (limited to 'include/linux/cleancache.h')
-rw-r--r-- | include/linux/cleancache.h | 23 |
1 files changed, 14 insertions, 9 deletions
diff --git a/include/linux/cleancache.h b/include/linux/cleancache.h index 04ffb2e6c9d0..66fb63b243a8 100644 --- a/include/linux/cleancache.h +++ b/include/linux/cleancache.h | |||
@@ -28,6 +28,11 @@ 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 | /* | ||
32 | * NOTE: per akpm, flush_page, flush_inode and flush_fs will be | ||
33 | * renamed to invalidate_* in a later commit in which all | ||
34 | * dependencies (i.e Xen, zcache) will be renamed simultaneously | ||
35 | */ | ||
31 | void (*flush_page)(int, struct cleancache_filekey, pgoff_t); | 36 | void (*flush_page)(int, struct cleancache_filekey, pgoff_t); |
32 | void (*flush_inode)(int, struct cleancache_filekey); | 37 | void (*flush_inode)(int, struct cleancache_filekey); |
33 | void (*flush_fs)(int); | 38 | void (*flush_fs)(int); |
@@ -39,9 +44,9 @@ extern void __cleancache_init_fs(struct super_block *); | |||
39 | extern void __cleancache_init_shared_fs(char *, struct super_block *); | 44 | extern void __cleancache_init_shared_fs(char *, struct super_block *); |
40 | extern int __cleancache_get_page(struct page *); | 45 | extern int __cleancache_get_page(struct page *); |
41 | extern void __cleancache_put_page(struct page *); | 46 | extern void __cleancache_put_page(struct page *); |
42 | extern void __cleancache_flush_page(struct address_space *, struct page *); | 47 | extern void __cleancache_invalidate_page(struct address_space *, struct page *); |
43 | extern void __cleancache_flush_inode(struct address_space *); | 48 | extern void __cleancache_invalidate_inode(struct address_space *); |
44 | extern void __cleancache_flush_fs(struct super_block *); | 49 | extern void __cleancache_invalidate_fs(struct super_block *); |
45 | extern int cleancache_enabled; | 50 | extern int cleancache_enabled; |
46 | 51 | ||
47 | #ifdef CONFIG_CLEANCACHE | 52 | #ifdef CONFIG_CLEANCACHE |
@@ -99,24 +104,24 @@ static inline void cleancache_put_page(struct page *page) | |||
99 | __cleancache_put_page(page); | 104 | __cleancache_put_page(page); |
100 | } | 105 | } |
101 | 106 | ||
102 | static inline void cleancache_flush_page(struct address_space *mapping, | 107 | static inline void cleancache_invalidate_page(struct address_space *mapping, |
103 | struct page *page) | 108 | struct page *page) |
104 | { | 109 | { |
105 | /* careful... page->mapping is NULL sometimes when this is called */ | 110 | /* careful... page->mapping is NULL sometimes when this is called */ |
106 | if (cleancache_enabled && cleancache_fs_enabled_mapping(mapping)) | 111 | if (cleancache_enabled && cleancache_fs_enabled_mapping(mapping)) |
107 | __cleancache_flush_page(mapping, page); | 112 | __cleancache_invalidate_page(mapping, page); |
108 | } | 113 | } |
109 | 114 | ||
110 | static inline void cleancache_flush_inode(struct address_space *mapping) | 115 | static inline void cleancache_invalidate_inode(struct address_space *mapping) |
111 | { | 116 | { |
112 | if (cleancache_enabled && cleancache_fs_enabled_mapping(mapping)) | 117 | if (cleancache_enabled && cleancache_fs_enabled_mapping(mapping)) |
113 | __cleancache_flush_inode(mapping); | 118 | __cleancache_invalidate_inode(mapping); |
114 | } | 119 | } |
115 | 120 | ||
116 | static inline void cleancache_flush_fs(struct super_block *sb) | 121 | static inline void cleancache_invalidate_fs(struct super_block *sb) |
117 | { | 122 | { |
118 | if (cleancache_enabled) | 123 | if (cleancache_enabled) |
119 | __cleancache_flush_fs(sb); | 124 | __cleancache_invalidate_fs(sb); |
120 | } | 125 | } |
121 | 126 | ||
122 | #endif /* _LINUX_CLEANCACHE_H */ | 127 | #endif /* _LINUX_CLEANCACHE_H */ |