diff options
author | Gu Zheng <guz.fnst@cn.fujitsu.com> | 2013-07-16 17:56:16 +0800 |
---|---|---|
committer | Benjamin LaHaise <bcrl@kvack.org> | 2013-07-16 09:32:18 -0400 |
commit | 36bc08cc01709b4a9bb563b35aa530241ddc63e3 (patch) | |
tree | dc441c213b61e83416f77400cb0492b09d2dbf7a /include/linux/migrate.h | |
parent | 55708698c5f153f4e390175cdfc395333b2eafbd (diff) |
fs/aio: Add support to aio ring pages migration
As the aio job will pin the ring pages, that will lead to mem migrated
failed. In order to fix this problem we use an anon inode to manage the aio ring
pages, and setup the migratepage callback in the anon inode's address space, so
that when mem migrating the aio ring pages will be moved to other mem node safely.
Signed-off-by: Gu Zheng <guz.fnst@cn.fujitsu.com>
Signed-off-by: Benjamin LaHaise <bcrl@kvack.org>
Diffstat (limited to 'include/linux/migrate.h')
-rw-r--r-- | include/linux/migrate.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/include/linux/migrate.h b/include/linux/migrate.h index a405d3dc0f61..c407d88f5979 100644 --- a/include/linux/migrate.h +++ b/include/linux/migrate.h @@ -55,6 +55,9 @@ extern int migrate_vmas(struct mm_struct *mm, extern void migrate_page_copy(struct page *newpage, struct page *page); extern int migrate_huge_page_move_mapping(struct address_space *mapping, struct page *newpage, struct page *page); +extern int migrate_page_move_mapping(struct address_space *mapping, + struct page *newpage, struct page *page, + struct buffer_head *head, enum migrate_mode mode); #else static inline void putback_lru_pages(struct list_head *l) {} |