Commit 5095ae83759f035c823fb375c6ed2de99c81d5ec
Committed by
Linus Torvalds
1 parent
2bcf887963
Exists in
master
and in
20 other branches
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>
Showing 2 changed files with 11 additions and 11 deletions Side-by-side Diff
include/linux/pagevec.h
... | ... | @@ -21,7 +21,7 @@ |
21 | 21 | }; |
22 | 22 | |
23 | 23 | void __pagevec_release(struct pagevec *pvec); |
24 | -void ____pagevec_lru_add(struct pagevec *pvec, enum lru_list lru); | |
24 | +void __pagevec_lru_add(struct pagevec *pvec, enum lru_list lru); | |
25 | 25 | unsigned pagevec_lookup(struct pagevec *pvec, struct address_space *mapping, |
26 | 26 | pgoff_t start, unsigned nr_pages); |
27 | 27 | unsigned pagevec_lookup_tag(struct pagevec *pvec, |
28 | 28 | |
29 | 29 | |
30 | 30 | |
... | ... | @@ -66,22 +66,22 @@ |
66 | 66 | |
67 | 67 | static inline void __pagevec_lru_add_anon(struct pagevec *pvec) |
68 | 68 | { |
69 | - ____pagevec_lru_add(pvec, LRU_INACTIVE_ANON); | |
69 | + __pagevec_lru_add(pvec, LRU_INACTIVE_ANON); | |
70 | 70 | } |
71 | 71 | |
72 | 72 | static inline void __pagevec_lru_add_active_anon(struct pagevec *pvec) |
73 | 73 | { |
74 | - ____pagevec_lru_add(pvec, LRU_ACTIVE_ANON); | |
74 | + __pagevec_lru_add(pvec, LRU_ACTIVE_ANON); | |
75 | 75 | } |
76 | 76 | |
77 | 77 | static inline void __pagevec_lru_add_file(struct pagevec *pvec) |
78 | 78 | { |
79 | - ____pagevec_lru_add(pvec, LRU_INACTIVE_FILE); | |
79 | + __pagevec_lru_add(pvec, LRU_INACTIVE_FILE); | |
80 | 80 | } |
81 | 81 | |
82 | 82 | static inline void __pagevec_lru_add_active_file(struct pagevec *pvec) |
83 | 83 | { |
84 | - ____pagevec_lru_add(pvec, LRU_ACTIVE_FILE); | |
84 | + __pagevec_lru_add(pvec, LRU_ACTIVE_FILE); | |
85 | 85 | } |
86 | 86 | |
87 | 87 | static inline void pagevec_lru_add_file(struct pagevec *pvec) |
mm/swap.c
... | ... | @@ -378,7 +378,7 @@ |
378 | 378 | |
379 | 379 | page_cache_get(page); |
380 | 380 | if (!pagevec_add(pvec, page)) |
381 | - ____pagevec_lru_add(pvec, lru); | |
381 | + __pagevec_lru_add(pvec, lru); | |
382 | 382 | put_cpu_var(lru_add_pvecs); |
383 | 383 | } |
384 | 384 | EXPORT_SYMBOL(__lru_cache_add); |
... | ... | @@ -506,7 +506,7 @@ |
506 | 506 | for_each_lru(lru) { |
507 | 507 | pvec = &pvecs[lru - LRU_BASE]; |
508 | 508 | if (pagevec_count(pvec)) |
509 | - ____pagevec_lru_add(pvec, lru); | |
509 | + __pagevec_lru_add(pvec, lru); | |
510 | 510 | } |
511 | 511 | |
512 | 512 | pvec = &per_cpu(lru_rotate_pvecs, cpu); |
... | ... | @@ -698,7 +698,7 @@ |
698 | 698 | } |
699 | 699 | #endif /* CONFIG_TRANSPARENT_HUGEPAGE */ |
700 | 700 | |
701 | -static void ____pagevec_lru_add_fn(struct page *page, void *arg) | |
701 | +static void __pagevec_lru_add_fn(struct page *page, void *arg) | |
702 | 702 | { |
703 | 703 | enum lru_list lru = (enum lru_list)arg; |
704 | 704 | struct zone *zone = page_zone(page); |
705 | 705 | |
706 | 706 | |
... | ... | @@ -720,14 +720,14 @@ |
720 | 720 | * Add the passed pages to the LRU, then drop the caller's refcount |
721 | 721 | * on them. Reinitialises the caller's pagevec. |
722 | 722 | */ |
723 | -void ____pagevec_lru_add(struct pagevec *pvec, enum lru_list lru) | |
723 | +void __pagevec_lru_add(struct pagevec *pvec, enum lru_list lru) | |
724 | 724 | { |
725 | 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 | |
730 | -EXPORT_SYMBOL(____pagevec_lru_add); | |
730 | +EXPORT_SYMBOL(__pagevec_lru_add); | |
731 | 731 | |
732 | 732 | /** |
733 | 733 | * pagevec_lookup - gang pagecache lookup |