summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorKAMEZAWA Hiroyuki <kamezawa.hiroyu@xxxxxxxxxxxxxx>2011-12-19 11:40:22 +0800
committerSebastien Jan <s-jan@ti.com>2011-12-20 10:05:50 +0100
commit3892a05cc45c57be55158067382a199ecdb8092b (patch)
tree5639f7e8ee3a5e53ae99762eb5fda15c9d91cab6 /include
parent6ae0f37d0cb237e336b47cb4f6ed94c7eddb854e (diff)
Memory hotplug is a logic for making pages unused in the specified
range of pfn. So, some of core logics can be used for other purpose as allocating a very large contigous memory block. This patch moves some functions from mm/memory_hotplug.c to mm/page_isolation.c. This helps adding a function for large-alloc in page_isolation.c with memory-unplug technique. Signed-off-by: KAMEZAWA Hiroyuki <kamezawa.hiroyu@xxxxxxxxxxxxxx> [m.nazarewicz: reworded commit message] Signed-off-by: Michal Nazarewicz <m.nazarewicz@xxxxxxxxxxx> Signed-off-by: Kyungmin Park <kyungmin.park@xxxxxxxxxxx> [m.szyprowski: rebased and updated to Linux v3.0-rc1] Signed-off-by: Marek Szyprowski <m.szyprowski@xxxxxxxxxxx> CC: Michal Nazarewicz <mina86@xxxxxxxxxx> Acked-by: Arnd Bergmann <arnd@xxxxxxxx>
Diffstat (limited to 'include')
-rw-r--r--include/linux/page-isolation.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/include/linux/page-isolation.h b/include/linux/page-isolation.h
index 051c1b1ede4e..58cdbac64453 100644
--- a/include/linux/page-isolation.h
+++ b/include/linux/page-isolation.h
@@ -33,5 +33,12 @@ test_pages_isolated(unsigned long start_pfn, unsigned long end_pfn);
extern int set_migratetype_isolate(struct page *page);
extern void unset_migratetype_isolate(struct page *page);
+/*
+ * For migration.
+ */
+
+int test_pages_in_a_zone(unsigned long start_pfn, unsigned long end_pfn);
+unsigned long scan_lru_pages(unsigned long start, unsigned long end);
+int do_migrate_range(unsigned long start_pfn, unsigned long end_pfn);
#endif