diff options
author | Christoph Lameter <clameter@sgi.com> | 2006-06-23 05:03:33 -0400 |
---|---|---|
committer | Linus Torvalds <torvalds@g5.osdl.org> | 2006-06-23 10:42:50 -0400 |
commit | 2d1db3b1170db4e8bf0531dd636742269c2cf579 (patch) | |
tree | 1161ed614a55869c278234d7472673fd1a577887 /include/linux/migrate.h | |
parent | c3fcf8a5daacf350f0632e1379414c01f34eeea3 (diff) |
[PATCH] page migration cleanup: pass "mapping" to migration functions
Change handling of address spaces.
Pass a pointer to the address space in which the page is migrated to all
migration function. This avoids repeatedly having to retrieve the address
space pointer from the page and checking it for validity. The old page
mapping will change once migration has gone to a certain step, so it is less
confusing to have the pointer always available.
Move the setting of the mapping and index for the new page into
migrate_pages().
Signed-off-by: Christoph Lameter <clameter@sgi.com>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
Diffstat (limited to 'include/linux/migrate.h')
-rw-r--r-- | include/linux/migrate.h | 6 |
1 files changed, 4 insertions, 2 deletions
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 | ||