aboutsummaryrefslogtreecommitdiffstats
path: root/mm/filemap.c
diff options
context:
space:
mode:
authorMinchan Kim <minchan.kim@gmail.com>2011-03-22 19:32:44 -0400
committerLinus Torvalds <torvalds@linux-foundation.org>2011-03-22 20:44:02 -0400
commite64a782fec684c29a8204c51b3cb554dce588592 (patch)
tree5ff0beb21b973f1ad0edc1e31b6a1c2ee4406bdc /mm/filemap.c
parent702cfbf93aaf3a091b0c64c8766c1ade0a820c38 (diff)
mm: change __remove_from_page_cache()
Now we renamed remove_from_page_cache with delete_from_page_cache. As consistency of __remove_from_swap_cache and remove_from_swap_cache, we change internal page cache handling function name, too. Signed-off-by: Minchan Kim <minchan.kim@gmail.com> Cc: Christoph Hellwig <hch@infradead.org> Acked-by: Hugh Dickins <hughd@google.com> Acked-by: Mel Gorman <mel@csn.ul.ie> Reviewed-by: KAMEZAWA Hiroyuki <kamezawa.hiroyu@jp.fujitsu.com> Reviewed-by: Johannes Weiner <hannes@cmpxchg.org> Reviewed-by: KOSAKI Motohiro <kosaki.motohiro@jp.fujitsu.com> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'mm/filemap.c')
-rw-r--r--mm/filemap.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/mm/filemap.c b/mm/filemap.c
index 1cfb8fd84b27..cb476e70cf19 100644
--- a/mm/filemap.c
+++ b/mm/filemap.c
@@ -108,11 +108,11 @@
108 */ 108 */
109 109
110/* 110/*
111 * Remove a page from the page cache and free it. Caller has to make 111 * Delete a page from the page cache and free it. Caller has to make
112 * sure the page is locked and that nobody else uses it - or that usage 112 * sure the page is locked and that nobody else uses it - or that usage
113 * is safe. The caller must hold the mapping's tree_lock. 113 * is safe. The caller must hold the mapping's tree_lock.
114 */ 114 */
115void __remove_from_page_cache(struct page *page) 115void __delete_from_page_cache(struct page *page)
116{ 116{
117 struct address_space *mapping = page->mapping; 117 struct address_space *mapping = page->mapping;
118 118
@@ -154,7 +154,7 @@ void delete_from_page_cache(struct page *page)
154 154
155 freepage = mapping->a_ops->freepage; 155 freepage = mapping->a_ops->freepage;
156 spin_lock_irq(&mapping->tree_lock); 156 spin_lock_irq(&mapping->tree_lock);
157 __remove_from_page_cache(page); 157 __delete_from_page_cache(page);
158 spin_unlock_irq(&mapping->tree_lock); 158 spin_unlock_irq(&mapping->tree_lock);
159 mem_cgroup_uncharge_cache_page(page); 159 mem_cgroup_uncharge_cache_page(page);
160 160
@@ -444,7 +444,7 @@ int replace_page_cache_page(struct page *old, struct page *new, gfp_t gfp_mask)
444 new->index = offset; 444 new->index = offset;
445 445
446 spin_lock_irq(&mapping->tree_lock); 446 spin_lock_irq(&mapping->tree_lock);
447 __remove_from_page_cache(old); 447 __delete_from_page_cache(old);
448 error = radix_tree_insert(&mapping->page_tree, offset, new); 448 error = radix_tree_insert(&mapping->page_tree, offset, new);
449 BUG_ON(error); 449 BUG_ON(error);
450 mapping->nrpages++; 450 mapping->nrpages++;