mirror of
https://github.com/Fishwaldo/Star64_linux.git
synced 2025-06-20 13:41:30 +00:00
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>
This commit is contained in:
parent
acda0c3340
commit
c5b4e1b02f
2 changed files with 3 additions and 7 deletions
|
@ -65,11 +65,6 @@ undo_isolate_page_range(unsigned long start_pfn, unsigned long end_pfn,
|
||||||
int test_pages_isolated(unsigned long start_pfn, unsigned long end_pfn,
|
int test_pages_isolated(unsigned long start_pfn, unsigned long end_pfn,
|
||||||
bool skip_hwpoisoned_pages);
|
bool skip_hwpoisoned_pages);
|
||||||
|
|
||||||
/*
|
|
||||||
* Internal functions. Changes pageblock's migrate type.
|
|
||||||
*/
|
|
||||||
int set_migratetype_isolate(struct page *page, bool skip_hwpoisoned_pages);
|
|
||||||
void unset_migratetype_isolate(struct page *page, unsigned migratetype);
|
|
||||||
struct page *alloc_migrate_target(struct page *page, unsigned long private,
|
struct page *alloc_migrate_target(struct page *page, unsigned long private,
|
||||||
int **resultp);
|
int **resultp);
|
||||||
|
|
||||||
|
|
|
@ -9,7 +9,8 @@
|
||||||
#include <linux/hugetlb.h>
|
#include <linux/hugetlb.h>
|
||||||
#include "internal.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;
|
struct zone *zone;
|
||||||
unsigned long flags, pfn;
|
unsigned long flags, pfn;
|
||||||
|
@ -72,7 +73,7 @@ out:
|
||||||
return ret;
|
return ret;
|
||||||
}
|
}
|
||||||
|
|
||||||
void unset_migratetype_isolate(struct page *page, unsigned migratetype)
|
static void unset_migratetype_isolate(struct page *page, unsigned migratetype)
|
||||||
{
|
{
|
||||||
struct zone *zone;
|
struct zone *zone;
|
||||||
unsigned long flags, nr_pages;
|
unsigned long flags, nr_pages;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue