summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorVandana Salve <vsalve@nvidia.com>2014-06-10 14:55:32 +0530
committerRiham Haidar <rhaidar@nvidia.com>2014-06-11 17:09:22 -0700
commitdfb505aca91ae0e976e4e2614aaae5e293d68f05 (patch)
treec6b881d29c7855c841f0804469e7680f37294969 /include
parent3f06b1cb27d0b55a99854106b17b8089d61e12b3 (diff)
mm: introduce migrate_replace_page() for migrating page to the given target
introduce migrate_replace_page for migrating page to the given target Signed-off-by: Marek Szyprowski <m.szyprowski@samsung.com> Signed-off-by: Kyungmin Park <kyungmin.park@samsung.com> bug 1517584 Change-Id: I5f1d3bcb19ca7d9c9cf7234e8d3472a42c4f40af Signed-off-by: Vandana Salve <vsalve@nvidia.com> Reviewed-on: http://git-master/r/421675 Reviewed-by: Krishna Reddy <vdumpa@nvidia.com> Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com>
Diffstat (limited to 'include')
-rw-r--r--include/linux/migrate.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/include/linux/migrate.h b/include/linux/migrate.h
index a405d3dc0f61..3a8a6c1b0697 100644
--- a/include/linux/migrate.h
+++ b/include/linux/migrate.h
@@ -35,6 +35,8 @@ enum migrate_reason {
#ifdef CONFIG_MIGRATION
+extern int migrate_replace_page(struct page *oldpage, struct page *newpage);
+
extern void putback_lru_pages(struct list_head *l);
extern void putback_movable_pages(struct list_head *l);
extern int migrate_page(struct address_space *,
@@ -57,6 +59,9 @@ extern int migrate_huge_page_move_mapping(struct address_space *mapping,
struct page *newpage, struct page *page);
#else
+static inline int migrate_replace_page(struct page *oldpage,
+ struct page *newpage) { return -ENOSYS; }
+
static inline void putback_lru_pages(struct list_head *l) {}
static inline void putback_movable_pages(struct list_head *l) {}
static inline int migrate_pages(struct list_head *l, new_page_t x,