Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

mm, page_isolation: make set/unset_migratetype_isolate() file-local

Nowaday, set/unset_migratetype_isolate() is defined and used only in
mm/page_isolation, so let's limit the scope within the file.

Signed-off-by: Naoya Horiguchi <n-horiguchi@ah.jp.nec.com>
Acked-by: David Rientjes <rientjes@google.com>
Acked-by: Vlastimil Babka <vbabka@suse.cz>
Cc: Joonsoo Kim <iamjoonsoo.kim@lge.com>
Cc: Minchan Kim <minchan@kernel.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>

authored by

Naoya Horiguchi and committed by
Linus Torvalds
c5b4e1b0 acda0c33

+3 -7
-5
include/linux/page-isolation.h
··· 65 65 int test_pages_isolated(unsigned long start_pfn, unsigned long end_pfn, 66 66 bool skip_hwpoisoned_pages); 67 67 68 - /* 69 - * Internal functions. Changes pageblock's migrate type. 70 - */ 71 - int set_migratetype_isolate(struct page *page, bool skip_hwpoisoned_pages); 72 - void unset_migratetype_isolate(struct page *page, unsigned migratetype); 73 68 struct page *alloc_migrate_target(struct page *page, unsigned long private, 74 69 int **resultp); 75 70
+3 -2
mm/page_isolation.c
··· 9 9 #include <linux/hugetlb.h> 10 10 #include "internal.h" 11 11 12 - int set_migratetype_isolate(struct page *page, bool skip_hwpoisoned_pages) 12 + static int set_migratetype_isolate(struct page *page, 13 + bool skip_hwpoisoned_pages) 13 14 { 14 15 struct zone *zone; 15 16 unsigned long flags, pfn; ··· 73 72 return ret; 74 73 } 75 74 76 - void unset_migratetype_isolate(struct page *page, unsigned migratetype) 75 + static void unset_migratetype_isolate(struct page *page, unsigned migratetype) 77 76 { 78 77 struct zone *zone; 79 78 unsigned long flags, nr_pages;