Skip to content

Commit

Permalink
cma: fix migration mode
Browse files Browse the repository at this point in the history
__alloc_contig_migrate_range calls migrate_pages with wrong argument
for migrate_mode. Fix it.

Cc: Marek Szyprowski <m.szyprowski@samsung.com>
Signed-off-by: Minchan Kim <minchan@kernel.org>
Acked-by: Michal Nazarewicz <mina86@mina86.com>
Signed-off-by: Marek Szyprowski <m.szyprowski@samsung.com>
  • Loading branch information
Minchan Kim authored and Marek Szyprowski committed May 21, 2012
1 parent c790950 commit 58f42fd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion mm/page_alloc.c
Original file line number Diff line number Diff line change
Expand Up @@ -5682,7 +5682,7 @@ static int __alloc_contig_migrate_range(unsigned long start, unsigned long end)

ret = migrate_pages(&cc.migratepages,
__alloc_contig_migrate_alloc,
0, false, true);
0, false, MIGRATE_SYNC);
}

putback_lru_pages(&cc.migratepages);
Expand Down

0 comments on commit 58f42fd

Please sign in to comment.