aboutsummaryrefslogtreecommitdiffstats
path: root/mm
diff options
context:
space:
mode:
authorMinchan Kim <minchan.kim@gmail.com>2012-05-11 03:37:13 -0400
committerMarek Szyprowski <m.szyprowski@samsung.com>2012-05-21 09:09:39 -0400
commit58f42fd54144346898e6dc6d6ae3acd4c591b42f (patch)
tree7b582aea2acdfc2a26ea3ef0cc82d477b3eb05ac /mm
parentc79095092834a18ae74cfc08def1a5a101dc106c (diff)
cma: fix migration mode
__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>
Diffstat (limited to 'mm')
-rw-r--r--mm/page_alloc.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/mm/page_alloc.c b/mm/page_alloc.c
index 22348ae1005d..ed85c02c1f6e 100644
--- a/mm/page_alloc.c
+++ b/mm/page_alloc.c
@@ -5682,7 +5682,7 @@ static int __alloc_contig_migrate_range(unsigned long start, unsigned long end)
5682 5682
5683 ret = migrate_pages(&cc.migratepages, 5683 ret = migrate_pages(&cc.migratepages,
5684 __alloc_contig_migrate_alloc, 5684 __alloc_contig_migrate_alloc,
5685 0, false, true); 5685 0, false, MIGRATE_SYNC);
5686 } 5686 }
5687 5687
5688 putback_lru_pages(&cc.migratepages); 5688 putback_lru_pages(&cc.migratepages);