mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-30 11:41:38 -04:00
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: [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]> Reviewed-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]> [v10: Fixed fs: move code out of buffer.c conflict change] Signed-off-by: Konrad Rzeszutek Wilk <[email protected]>
This commit is contained in:
parent
972b2c7199
commit
3167760f83
7 changed files with 51 additions and 44 deletions
|
|
@ -52,7 +52,7 @@ void do_invalidatepage(struct page *page, unsigned long offset)
|
|||
static inline void truncate_partial_page(struct page *page, unsigned partial)
|
||||
{
|
||||
zero_user_segment(page, partial, PAGE_CACHE_SIZE);
|
||||
cleancache_flush_page(page->mapping, page);
|
||||
cleancache_invalidate_page(page->mapping, page);
|
||||
if (page_has_private(page))
|
||||
do_invalidatepage(page, partial);
|
||||
}
|
||||
|
|
@ -213,7 +213,7 @@ void truncate_inode_pages_range(struct address_space *mapping,
|
|||
pgoff_t end;
|
||||
int i;
|
||||
|
||||
cleancache_flush_inode(mapping);
|
||||
cleancache_invalidate_inode(mapping);
|
||||
if (mapping->nrpages == 0)
|
||||
return;
|
||||
|
||||
|
|
@ -292,7 +292,7 @@ void truncate_inode_pages_range(struct address_space *mapping,
|
|||
mem_cgroup_uncharge_end();
|
||||
index++;
|
||||
}
|
||||
cleancache_flush_inode(mapping);
|
||||
cleancache_invalidate_inode(mapping);
|
||||
}
|
||||
EXPORT_SYMBOL(truncate_inode_pages_range);
|
||||
|
||||
|
|
@ -444,7 +444,7 @@ int invalidate_inode_pages2_range(struct address_space *mapping,
|
|||
int ret2 = 0;
|
||||
int did_range_unmap = 0;
|
||||
|
||||
cleancache_flush_inode(mapping);
|
||||
cleancache_invalidate_inode(mapping);
|
||||
pagevec_init(&pvec, 0);
|
||||
index = start;
|
||||
while (index <= end && pagevec_lookup(&pvec, mapping, index,
|
||||
|
|
@ -500,7 +500,7 @@ int invalidate_inode_pages2_range(struct address_space *mapping,
|
|||
cond_resched();
|
||||
index++;
|
||||
}
|
||||
cleancache_flush_inode(mapping);
|
||||
cleancache_invalidate_inode(mapping);
|
||||
return ret;
|
||||
}
|
||||
EXPORT_SYMBOL_GPL(invalidate_inode_pages2_range);
|
||||
|
|
|
|||
Loading…
Reference in a new issue