Commit e64a782fec684c29a8204c51b3cb554dce588592
Committed by
Linus Torvalds
1 parent
702cfbf93a
Exists in
master
and in
20 other branches
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>
Showing 5 changed files with 8 additions and 8 deletions Side-by-side Diff
include/linux/pagemap.h
... | ... | @@ -456,7 +456,7 @@ |
456 | 456 | int add_to_page_cache_lru(struct page *page, struct address_space *mapping, |
457 | 457 | pgoff_t index, gfp_t gfp_mask); |
458 | 458 | extern void delete_from_page_cache(struct page *page); |
459 | -extern void __remove_from_page_cache(struct page *page); | |
459 | +extern void __delete_from_page_cache(struct page *page); | |
460 | 460 | int replace_page_cache_page(struct page *old, struct page *new, gfp_t gfp_mask); |
461 | 461 | |
462 | 462 | /* |
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 | 112 | * sure the page is locked and that nobody else uses it - or that usage |
113 | 113 | * is safe. The caller must hold the mapping's tree_lock. |
114 | 114 | */ |
115 | -void __remove_from_page_cache(struct page *page) | |
115 | +void __delete_from_page_cache(struct page *page) | |
116 | 116 | { |
117 | 117 | struct address_space *mapping = page->mapping; |
118 | 118 | |
... | ... | @@ -154,7 +154,7 @@ |
154 | 154 | |
155 | 155 | freepage = mapping->a_ops->freepage; |
156 | 156 | spin_lock_irq(&mapping->tree_lock); |
157 | - __remove_from_page_cache(page); | |
157 | + __delete_from_page_cache(page); | |
158 | 158 | spin_unlock_irq(&mapping->tree_lock); |
159 | 159 | mem_cgroup_uncharge_cache_page(page); |
160 | 160 | |
... | ... | @@ -444,7 +444,7 @@ |
444 | 444 | new->index = offset; |
445 | 445 | |
446 | 446 | spin_lock_irq(&mapping->tree_lock); |
447 | - __remove_from_page_cache(old); | |
447 | + __delete_from_page_cache(old); | |
448 | 448 | error = radix_tree_insert(&mapping->page_tree, offset, new); |
449 | 449 | BUG_ON(error); |
450 | 450 | mapping->nrpages++; |
mm/memory-failure.c
... | ... | @@ -1130,7 +1130,7 @@ |
1130 | 1130 | |
1131 | 1131 | /* |
1132 | 1132 | * Now take care of user space mappings. |
1133 | - * Abort on fail: __remove_from_page_cache() assumes unmapped page. | |
1133 | + * Abort on fail: __delete_from_page_cache() assumes unmapped page. | |
1134 | 1134 | */ |
1135 | 1135 | if (hwpoison_user_mappings(p, pfn, trapno) != SWAP_SUCCESS) { |
1136 | 1136 | printk(KERN_ERR "MCE %#lx: cannot unmap page, give up\n", pfn); |
mm/truncate.c
mm/vmscan.c