aboutsummaryrefslogtreecommitdiffstats
path: root/include/linux/migrate.h
diff options
context:
space:
mode:
authorGlenn Elliott <gelliott@cs.unc.edu>2012-03-04 19:47:13 -0500
committerGlenn Elliott <gelliott@cs.unc.edu>2012-03-04 19:47:13 -0500
commitc71c03bda1e86c9d5198c5d83f712e695c4f2a1e (patch)
treeecb166cb3e2b7e2adb3b5e292245fefd23381ac8 /include/linux/migrate.h
parentea53c912f8a86a8567697115b6a0d8152beee5c8 (diff)
parent6a00f206debf8a5c8899055726ad127dbeeed098 (diff)
Merge branch 'mpi-master' into wip-k-fmlpwip-k-fmlp
Conflicts: litmus/sched_cedf.c
Diffstat (limited to 'include/linux/migrate.h')
-rw-r--r--include/linux/migrate.h24
1 files changed, 22 insertions, 2 deletions
diff --git a/include/linux/migrate.h b/include/linux/migrate.h
index 7238231b8dd4..e39aeecfe9a2 100644
--- a/include/linux/migrate.h
+++ b/include/linux/migrate.h
@@ -13,7 +13,11 @@ extern void putback_lru_pages(struct list_head *l);
13extern int migrate_page(struct address_space *, 13extern int migrate_page(struct address_space *,
14 struct page *, struct page *); 14 struct page *, struct page *);
15extern int migrate_pages(struct list_head *l, new_page_t x, 15extern int migrate_pages(struct list_head *l, new_page_t x,
16 unsigned long private, int offlining); 16 unsigned long private, bool offlining,
17 bool sync);
18extern int migrate_huge_pages(struct list_head *l, new_page_t x,
19 unsigned long private, bool offlining,
20 bool sync);
17 21
18extern int fail_migrate_page(struct address_space *, 22extern int fail_migrate_page(struct address_space *,
19 struct page *, struct page *); 23 struct page *, struct page *);
@@ -23,12 +27,19 @@ extern int migrate_prep_local(void);
23extern int migrate_vmas(struct mm_struct *mm, 27extern int migrate_vmas(struct mm_struct *mm,
24 const nodemask_t *from, const nodemask_t *to, 28 const nodemask_t *from, const nodemask_t *to,
25 unsigned long flags); 29 unsigned long flags);
30extern void migrate_page_copy(struct page *newpage, struct page *page);
31extern int migrate_huge_page_move_mapping(struct address_space *mapping,
32 struct page *newpage, struct page *page);
26#else 33#else
27#define PAGE_MIGRATION 0 34#define PAGE_MIGRATION 0
28 35
29static inline void putback_lru_pages(struct list_head *l) {} 36static inline void putback_lru_pages(struct list_head *l) {}
30static inline int migrate_pages(struct list_head *l, new_page_t x, 37static inline int migrate_pages(struct list_head *l, new_page_t x,
31 unsigned long private, int offlining) { return -ENOSYS; } 38 unsigned long private, bool offlining,
39 bool sync) { return -ENOSYS; }
40static inline int migrate_huge_pages(struct list_head *l, new_page_t x,
41 unsigned long private, bool offlining,
42 bool sync) { return -ENOSYS; }
32 43
33static inline int migrate_prep(void) { return -ENOSYS; } 44static inline int migrate_prep(void) { return -ENOSYS; }
34static inline int migrate_prep_local(void) { return -ENOSYS; } 45static inline int migrate_prep_local(void) { return -ENOSYS; }
@@ -40,6 +51,15 @@ static inline int migrate_vmas(struct mm_struct *mm,
40 return -ENOSYS; 51 return -ENOSYS;
41} 52}
42 53
54static inline void migrate_page_copy(struct page *newpage,
55 struct page *page) {}
56
57static inline int migrate_huge_page_move_mapping(struct address_space *mapping,
58 struct page *newpage, struct page *page)
59{
60 return -ENOSYS;
61}
62
43/* Possible settings for the migrate_page() method in address_operations */ 63/* Possible settings for the migrate_page() method in address_operations */
44#define migrate_page NULL 64#define migrate_page NULL
45#define fail_migrate_page NULL 65#define fail_migrate_page NULL