diff options
Diffstat (limited to 'include/linux')
-rw-r--r-- | include/linux/fs.h | 6 | ||||
-rw-r--r-- | include/linux/migrate.h | 6 |
2 files changed, 8 insertions, 4 deletions
diff --git a/include/linux/fs.h b/include/linux/fs.h index c823a3815e24..e917403f4d58 100644 --- a/include/linux/fs.h +++ b/include/linux/fs.h | |||
@@ -376,7 +376,8 @@ struct address_space_operations { | |||
376 | struct page* (*get_xip_page)(struct address_space *, sector_t, | 376 | struct page* (*get_xip_page)(struct address_space *, sector_t, |
377 | int); | 377 | int); |
378 | /* migrate the contents of a page to the specified target */ | 378 | /* migrate the contents of a page to the specified target */ |
379 | int (*migratepage) (struct page *, struct page *); | 379 | int (*migratepage) (struct address_space *, |
380 | struct page *, struct page *); | ||
380 | }; | 381 | }; |
381 | 382 | ||
382 | struct backing_dev_info; | 383 | struct backing_dev_info; |
@@ -1772,7 +1773,8 @@ extern void simple_release_fs(struct vfsmount **mount, int *count); | |||
1772 | extern ssize_t simple_read_from_buffer(void __user *, size_t, loff_t *, const void *, size_t); | 1773 | extern ssize_t simple_read_from_buffer(void __user *, size_t, loff_t *, const void *, size_t); |
1773 | 1774 | ||
1774 | #ifdef CONFIG_MIGRATION | 1775 | #ifdef CONFIG_MIGRATION |
1775 | extern int buffer_migrate_page(struct page *, struct page *); | 1776 | extern int buffer_migrate_page(struct address_space *, |
1777 | struct page *, struct page *); | ||
1776 | #else | 1778 | #else |
1777 | #define buffer_migrate_page NULL | 1779 | #define buffer_migrate_page NULL |
1778 | #endif | 1780 | #endif |
diff --git a/include/linux/migrate.h b/include/linux/migrate.h index e8d3b08cc354..287c47b5e5df 100644 --- a/include/linux/migrate.h +++ b/include/linux/migrate.h | |||
@@ -6,12 +6,14 @@ | |||
6 | #ifdef CONFIG_MIGRATION | 6 | #ifdef CONFIG_MIGRATION |
7 | extern int isolate_lru_page(struct page *p, struct list_head *pagelist); | 7 | extern int isolate_lru_page(struct page *p, struct list_head *pagelist); |
8 | extern int putback_lru_pages(struct list_head *l); | 8 | extern int putback_lru_pages(struct list_head *l); |
9 | extern int migrate_page(struct page *, struct page *); | 9 | extern int migrate_page(struct address_space *, |
10 | struct page *, struct page *); | ||
10 | extern int migrate_pages(struct list_head *l, struct list_head *t, | 11 | extern int migrate_pages(struct list_head *l, struct list_head *t, |
11 | struct list_head *moved, struct list_head *failed); | 12 | struct list_head *moved, struct list_head *failed); |
12 | extern int migrate_pages_to(struct list_head *pagelist, | 13 | extern int migrate_pages_to(struct list_head *pagelist, |
13 | struct vm_area_struct *vma, int dest); | 14 | struct vm_area_struct *vma, int dest); |
14 | extern int fail_migrate_page(struct page *, struct page *); | 15 | extern int fail_migrate_page(struct address_space *, |
16 | struct page *, struct page *); | ||
15 | 17 | ||
16 | extern int migrate_prep(void); | 18 | extern int migrate_prep(void); |
17 | 19 | ||