mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-29 19:21:31 -04:00
mm: zcache/tmem/cleancache: s/flush/invalidate/
Complete the renaming from "flush" to "invalidate" across both tmem frontends (cleancache and frontswap) and both tmem backends (Xen and zcache), as required by akpm. This change is completely cosmetic. [v10: no change] [v9: [email protected]: change "flush" to "invalidate", part 3] Signed-off-by: Dan Magenheimer <[email protected]> Cc: Kamezawa Hiroyuki <[email protected]> Cc: Jan Beulich <[email protected]> Acked-by: Seth Jennings <[email protected]> Cc: Jeremy Fitzhardinge <[email protected]> Cc: Hugh Dickins <[email protected]> Cc: Johannes Weiner <[email protected]> Cc: Nitin Gupta <[email protected]> Cc: Matthew Wilcox <[email protected]> Cc: Chris Mason <[email protected]> Cc: Rik Riel <[email protected]> Cc: Andrew Morton <[email protected]> [v11: Remove the frontswap part] Signed-off-by: Konrad Rzeszutek Wilk <[email protected]>
This commit is contained in:
parent
3167760f83
commit
91c6cc9b5c
4 changed files with 17 additions and 21 deletions
|
|
@ -161,7 +161,8 @@ void __cleancache_invalidate_page(struct address_space *mapping,
|
|||
if (pool_id >= 0) {
|
||||
VM_BUG_ON(!PageLocked(page));
|
||||
if (cleancache_get_key(mapping->host, &key) >= 0) {
|
||||
(*cleancache_ops.flush_page)(pool_id, key, page->index);
|
||||
(*cleancache_ops.invalidate_page)(pool_id,
|
||||
key, page->index);
|
||||
cleancache_flushes++;
|
||||
}
|
||||
}
|
||||
|
|
@ -179,7 +180,7 @@ void __cleancache_invalidate_inode(struct address_space *mapping)
|
|||
struct cleancache_filekey key = { .u.key = { 0 } };
|
||||
|
||||
if (pool_id >= 0 && cleancache_get_key(mapping->host, &key) >= 0)
|
||||
(*cleancache_ops.flush_inode)(pool_id, key);
|
||||
(*cleancache_ops.invalidate_inode)(pool_id, key);
|
||||
}
|
||||
EXPORT_SYMBOL(__cleancache_invalidate_inode);
|
||||
|
||||
|
|
@ -193,7 +194,7 @@ void __cleancache_invalidate_fs(struct super_block *sb)
|
|||
if (sb->cleancache_poolid >= 0) {
|
||||
int old_poolid = sb->cleancache_poolid;
|
||||
sb->cleancache_poolid = -1;
|
||||
(*cleancache_ops.flush_fs)(old_poolid);
|
||||
(*cleancache_ops.invalidate_fs)(old_poolid);
|
||||
}
|
||||
}
|
||||
EXPORT_SYMBOL(__cleancache_invalidate_fs);
|
||||
|
|
|
|||
Loading…
Reference in a new issue