diff options
author | Glenn Elliott <gelliott@cs.unc.edu> | 2012-03-04 19:47:13 -0500 |
---|---|---|
committer | Glenn Elliott <gelliott@cs.unc.edu> | 2012-03-04 19:47:13 -0500 |
commit | c71c03bda1e86c9d5198c5d83f712e695c4f2a1e (patch) | |
tree | ecb166cb3e2b7e2adb3b5e292245fefd23381ac8 /include/linux/migrate.h | |
parent | ea53c912f8a86a8567697115b6a0d8152beee5c8 (diff) | |
parent | 6a00f206debf8a5c8899055726ad127dbeeed098 (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.h | 24 |
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); | |||
13 | extern int migrate_page(struct address_space *, | 13 | extern int migrate_page(struct address_space *, |
14 | struct page *, struct page *); | 14 | struct page *, struct page *); |
15 | extern int migrate_pages(struct list_head *l, new_page_t x, | 15 | extern 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); | ||
18 | extern int migrate_huge_pages(struct list_head *l, new_page_t x, | ||
19 | unsigned long private, bool offlining, | ||
20 | bool sync); | ||
17 | 21 | ||
18 | extern int fail_migrate_page(struct address_space *, | 22 | extern 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); | |||
23 | extern int migrate_vmas(struct mm_struct *mm, | 27 | extern 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); |
30 | extern void migrate_page_copy(struct page *newpage, struct page *page); | ||
31 | extern 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 | ||
29 | static inline void putback_lru_pages(struct list_head *l) {} | 36 | static inline void putback_lru_pages(struct list_head *l) {} |
30 | static inline int migrate_pages(struct list_head *l, new_page_t x, | 37 | static 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; } | ||
40 | static 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 | ||
33 | static inline int migrate_prep(void) { return -ENOSYS; } | 44 | static inline int migrate_prep(void) { return -ENOSYS; } |
34 | static inline int migrate_prep_local(void) { return -ENOSYS; } | 45 | static 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 | ||
54 | static inline void migrate_page_copy(struct page *newpage, | ||
55 | struct page *page) {} | ||
56 | |||
57 | static 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 |