diff options
Diffstat (limited to 'include/linux/migrate.h')
| -rw-r--r-- | include/linux/migrate.h | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/include/linux/migrate.h b/include/linux/migrate.h index 5dba23a1c0d0..48148e0cdbd1 100644 --- a/include/linux/migrate.h +++ b/include/linux/migrate.h | |||
| @@ -16,7 +16,9 @@ extern int fail_migrate_page(struct address_space *, | |||
| 16 | struct page *, struct page *); | 16 | struct page *, struct page *); |
| 17 | 17 | ||
| 18 | extern int migrate_prep(void); | 18 | extern int migrate_prep(void); |
| 19 | 19 | extern int migrate_vmas(struct mm_struct *mm, | |
| 20 | const nodemask_t *from, const nodemask_t *to, | ||
| 21 | unsigned long flags); | ||
| 20 | #else | 22 | #else |
| 21 | 23 | ||
| 22 | static inline int isolate_lru_page(struct page *p, struct list_head *list) | 24 | static inline int isolate_lru_page(struct page *p, struct list_head *list) |
| @@ -30,6 +32,13 @@ static inline int migrate_pages_to(struct list_head *pagelist, | |||
| 30 | 32 | ||
| 31 | static inline int migrate_prep(void) { return -ENOSYS; } | 33 | static inline int migrate_prep(void) { return -ENOSYS; } |
| 32 | 34 | ||
| 35 | static inline int migrate_vmas(struct mm_struct *mm, | ||
| 36 | const nodemask_t *from, const nodemask_t *to, | ||
| 37 | unsigned long flags) | ||
| 38 | { | ||
| 39 | return -ENOSYS; | ||
| 40 | } | ||
| 41 | |||
| 33 | /* Possible settings for the migrate_page() method in address_operations */ | 42 | /* Possible settings for the migrate_page() method in address_operations */ |
| 34 | #define migrate_page NULL | 43 | #define migrate_page NULL |
| 35 | #define fail_migrate_page NULL | 44 | #define fail_migrate_page NULL |
