aboutsummaryrefslogtreecommitdiffstats
path: root/mm/swap.c
diff options
context:
space:
mode:
authorHugh Dickins <hughd@google.com>2012-01-12 20:19:58 -0500
committerLinus Torvalds <torvalds@linux-foundation.org>2012-01-12 23:13:10 -0500
commit5095ae83759f035c823fb375c6ed2de99c81d5ec (patch)
tree478eb973da4fe6461cd749136a5f62bd96a0ac21 /mm/swap.c
parent2bcf887963812c075f80a14e1fad8ec7e1c67acf (diff)
mm: fewer underscores in ____pagevec_lru_add
What's so special about ____pagevec_lru_add() that it needs four leading underscores? Nothing, it just helped to distinguish from __pagevec_lru_add() in 2.6.28 development. Cut two leading underscores. Signed-off-by: Hugh Dickins <hughd@google.com> 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/swap.c')
-rw-r--r--mm/swap.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/mm/swap.c b/mm/swap.c
index 79c22a649a3e..e1cd623d9b2b 100644
--- a/mm/swap.c
+++ b/mm/swap.c
@@ -378,7 +378,7 @@ void __lru_cache_add(struct page *page, enum lru_list lru)
378 378
379 page_cache_get(page); 379 page_cache_get(page);
380 if (!pagevec_add(pvec, page)) 380 if (!pagevec_add(pvec, page))
381 ____pagevec_lru_add(pvec, lru); 381 __pagevec_lru_add(pvec, lru);
382 put_cpu_var(lru_add_pvecs); 382 put_cpu_var(lru_add_pvecs);
383} 383}
384EXPORT_SYMBOL(__lru_cache_add); 384EXPORT_SYMBOL(__lru_cache_add);
@@ -506,7 +506,7 @@ static void drain_cpu_pagevecs(int cpu)
506 for_each_lru(lru) { 506 for_each_lru(lru) {
507 pvec = &pvecs[lru - LRU_BASE]; 507 pvec = &pvecs[lru - LRU_BASE];
508 if (pagevec_count(pvec)) 508 if (pagevec_count(pvec))
509 ____pagevec_lru_add(pvec, lru); 509 __pagevec_lru_add(pvec, lru);
510 } 510 }
511 511
512 pvec = &per_cpu(lru_rotate_pvecs, cpu); 512 pvec = &per_cpu(lru_rotate_pvecs, cpu);
@@ -698,7 +698,7 @@ void lru_add_page_tail(struct zone* zone,
698} 698}
699#endif /* CONFIG_TRANSPARENT_HUGEPAGE */ 699#endif /* CONFIG_TRANSPARENT_HUGEPAGE */
700 700
701static void ____pagevec_lru_add_fn(struct page *page, void *arg) 701static void __pagevec_lru_add_fn(struct page *page, void *arg)
702{ 702{
703 enum lru_list lru = (enum lru_list)arg; 703 enum lru_list lru = (enum lru_list)arg;
704 struct zone *zone = page_zone(page); 704 struct zone *zone = page_zone(page);
@@ -720,14 +720,14 @@ static void ____pagevec_lru_add_fn(struct page *page, void *arg)
720 * Add the passed pages to the LRU, then drop the caller's refcount 720 * Add the passed pages to the LRU, then drop the caller's refcount
721 * on them. Reinitialises the caller's pagevec. 721 * on them. Reinitialises the caller's pagevec.
722 */ 722 */
723void ____pagevec_lru_add(struct pagevec *pvec, enum lru_list lru) 723void __pagevec_lru_add(struct pagevec *pvec, enum lru_list lru)
724{ 724{
725 VM_BUG_ON(is_unevictable_lru(lru)); 725 VM_BUG_ON(is_unevictable_lru(lru));
726 726
727 pagevec_lru_move_fn(pvec, ____pagevec_lru_add_fn, (void *)lru); 727 pagevec_lru_move_fn(pvec, __pagevec_lru_add_fn, (void *)lru);
728} 728}
729 729
730EXPORT_SYMBOL(____pagevec_lru_add); 730EXPORT_SYMBOL(__pagevec_lru_add);
731 731
732/** 732/**
733 * pagevec_lookup - gang pagecache lookup 733 * pagevec_lookup - gang pagecache lookup