aboutsummaryrefslogtreecommitdiffstats
path: root/mm
diff options
context:
space:
mode:
authorGu Zheng <guz.fnst@cn.fujitsu.com>2013-07-16 05:56:16 -0400
committerBenjamin LaHaise <bcrl@kvack.org>2013-07-16 09:32:18 -0400
commit36bc08cc01709b4a9bb563b35aa530241ddc63e3 (patch)
treedc441c213b61e83416f77400cb0492b09d2dbf7a /mm
parent55708698c5f153f4e390175cdfc395333b2eafbd (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 'mm')
-rw-r--r--mm/migrate.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/mm/migrate.c b/mm/migrate.c
index 6f0c24438bba..1da0092561a4 100644
--- a/mm/migrate.c
+++ b/mm/migrate.c
@@ -307,7 +307,7 @@ static inline bool buffer_migrate_lock_buffers(struct buffer_head *head,
307 * 2 for pages with a mapping 307 * 2 for pages with a mapping
308 * 3 for pages with a mapping and PagePrivate/PagePrivate2 set. 308 * 3 for pages with a mapping and PagePrivate/PagePrivate2 set.
309 */ 309 */
310static int migrate_page_move_mapping(struct address_space *mapping, 310int migrate_page_move_mapping(struct address_space *mapping,
311 struct page *newpage, struct page *page, 311 struct page *newpage, struct page *page,
312 struct buffer_head *head, enum migrate_mode mode) 312 struct buffer_head *head, enum migrate_mode mode)
313{ 313{