summaryrefslogtreecommitdiffstats
path: root/mm/page_isolation.c
diff options
context:
space:
mode:
authorNaoya Horiguchi2015-09-09 00:02:09 +0200
committerLinus Torvalds2015-09-09 00:35:28 +0200
commitc5b4e1b02f2a0c2309ecd58a235a2f5ee4eb0074 (patch)
tree40354604f661de3b308dbcff9f9af778192d9f48 /mm/page_isolation.c
parentmm/mempolicy.c: get rid of duplicated check for vma(VM_PFNMAP) in queue_pages... (diff)
downloadkernel-qcow2-linux-c5b4e1b02f2a0c2309ecd58a235a2f5ee4eb0074.tar.gz
kernel-qcow2-linux-c5b4e1b02f2a0c2309ecd58a235a2f5ee4eb0074.tar.xz
kernel-qcow2-linux-c5b4e1b02f2a0c2309ecd58a235a2f5ee4eb0074.zip
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>
Diffstat (limited to 'mm/page_isolation.c')
-rw-r--r--mm/page_isolation.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/mm/page_isolation.c b/mm/page_isolation.c
index 32fdc1df05e5..4568fd58f70a 100644
--- a/mm/page_isolation.c
+++ b/mm/page_isolation.c
@@ -9,7 +9,8 @@
#include <linux/hugetlb.h>
#include "internal.h"
-int set_migratetype_isolate(struct page *page, bool skip_hwpoisoned_pages)
+static int set_migratetype_isolate(struct page *page,
+ bool skip_hwpoisoned_pages)
{
struct zone *zone;
unsigned long flags, pfn;
@@ -72,7 +73,7 @@ out:
return ret;
}
-void unset_migratetype_isolate(struct page *page, unsigned migratetype)
+static void unset_migratetype_isolate(struct page *page, unsigned migratetype)
{
struct zone *zone;
unsigned long flags, nr_pages;