diff options
| author | Dmitry Torokhov <dtor_core@ameritech.net> | 2006-06-26 01:31:38 -0400 |
|---|---|---|
| committer | Dmitry Torokhov <dtor_core@ameritech.net> | 2006-06-26 01:31:38 -0400 |
| commit | 4854c7b27f0975a2b629f35ea3996d2968eb7c4f (patch) | |
| tree | 4102bdb70289764a2058aff0f907b13d7cf0e0d1 /include/linux/migrate.h | |
| parent | 3cbd5b32cb625f5c0f1b1476d154fac873dd49ce (diff) | |
| parent | fcc18e83e1f6fd9fa6b333735bf0fcd530655511 (diff) | |
Merge rsync://rsync.kernel.org/pub/scm/linux/kernel/git/torvalds/linux-2.6
Diffstat (limited to 'include/linux/migrate.h')
| -rw-r--r-- | include/linux/migrate.h | 32 |
1 files changed, 20 insertions, 12 deletions
diff --git a/include/linux/migrate.h b/include/linux/migrate.h index ff0a64073ebc..48148e0cdbd1 100644 --- a/include/linux/migrate.h +++ b/include/linux/migrate.h | |||
| @@ -1,36 +1,44 @@ | |||
| 1 | #ifndef _LINUX_MIGRATE_H | 1 | #ifndef _LINUX_MIGRATE_H |
| 2 | #define _LINUX_MIGRATE_H | 2 | #define _LINUX_MIGRATE_H |
| 3 | 3 | ||
| 4 | #include <linux/config.h> | ||
| 5 | #include <linux/mm.h> | 4 | #include <linux/mm.h> |
| 6 | 5 | ||
| 6 | typedef struct page *new_page_t(struct page *, unsigned long private, int **); | ||
| 7 | |||
| 7 | #ifdef CONFIG_MIGRATION | 8 | #ifdef CONFIG_MIGRATION |
| 8 | extern int isolate_lru_page(struct page *p, struct list_head *pagelist); | 9 | extern int isolate_lru_page(struct page *p, struct list_head *pagelist); |
| 9 | extern int putback_lru_pages(struct list_head *l); | 10 | extern int putback_lru_pages(struct list_head *l); |
| 10 | extern int migrate_page(struct page *, struct page *); | 11 | extern int migrate_page(struct address_space *, |
| 11 | extern void migrate_page_copy(struct page *, struct page *); | 12 | struct page *, struct page *); |
| 12 | extern int migrate_page_remove_references(struct page *, struct page *, int); | 13 | extern int migrate_pages(struct list_head *l, new_page_t x, unsigned long); |
| 13 | extern int migrate_pages(struct list_head *l, struct list_head *t, | ||
| 14 | struct list_head *moved, struct list_head *failed); | ||
| 15 | extern int migrate_pages_to(struct list_head *pagelist, | ||
| 16 | struct vm_area_struct *vma, int dest); | ||
| 17 | extern int fail_migrate_page(struct page *, struct page *); | ||
| 18 | 14 | ||
| 19 | extern int migrate_prep(void); | 15 | extern int fail_migrate_page(struct address_space *, |
| 16 | struct page *, struct page *); | ||
| 20 | 17 | ||
| 18 | extern int migrate_prep(void); | ||
| 19 | extern int migrate_vmas(struct mm_struct *mm, | ||
| 20 | const nodemask_t *from, const nodemask_t *to, | ||
| 21 | unsigned long flags); | ||
| 21 | #else | 22 | #else |
| 22 | 23 | ||
| 23 | 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) |
| 24 | { return -ENOSYS; } | 25 | { return -ENOSYS; } |
| 25 | static inline int putback_lru_pages(struct list_head *l) { return 0; } | 26 | static inline int putback_lru_pages(struct list_head *l) { return 0; } |
| 26 | static inline int migrate_pages(struct list_head *l, struct list_head *t, | 27 | static inline int migrate_pages(struct list_head *l, new_page_t x, |
| 27 | struct list_head *moved, struct list_head *failed) { return -ENOSYS; } | 28 | unsigned long private) { return -ENOSYS; } |
| 28 | 29 | ||
| 29 | static inline int migrate_pages_to(struct list_head *pagelist, | 30 | static inline int migrate_pages_to(struct list_head *pagelist, |
| 30 | struct vm_area_struct *vma, int dest) { return 0; } | 31 | struct vm_area_struct *vma, int dest) { return 0; } |
| 31 | 32 | ||
| 32 | static inline int migrate_prep(void) { return -ENOSYS; } | 33 | static inline int migrate_prep(void) { return -ENOSYS; } |
| 33 | 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 | |||
| 34 | /* Possible settings for the migrate_page() method in address_operations */ | 42 | /* Possible settings for the migrate_page() method in address_operations */ |
| 35 | #define migrate_page NULL | 43 | #define migrate_page NULL |
| 36 | #define fail_migrate_page NULL | 44 | #define fail_migrate_page NULL |
