Skip to contentSkip to conversation

cma: fix migration mode

PATCH In review Minchan Kim 3 participants 3 messages May 10, 2012 – May 11, 2012

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 cma: fix migration mode

__alloc_contig_migrate_range calls migrate_pages with wrong argument for migrate_mode. Fix it.

Cc Marek Szyprowski <[email protected]>
---
 mm/page_alloc.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
mm/page_alloc.c +1 -1
index 4d926f1..9febc62 100644
@@ -5689,7 +5689,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);
Signature · 8 lines
1.7.9.5

--
To unsubscribe, send a message with 'unsubscribe linux-mm' in
the body to [email protected].  For more info on Linux MM,
see: http://www.linux-mm.org/ .
Fight unfair telecom internet charges in Canada: sign http://stopthemeter.ca/
Don't email: <a href=mailto:"[email protected]"> [email protected] </a>
Acked-by on v1 1/1
#1 lore raw
Quoted 5 lines · Minchan Kim

__alloc_contig_migrate_range calls migrate_pages with wrong argument for migrate_mode. Fix it.

Cc Marek Szyprowski <[email protected]>
Quoted 15 lines
---
 mm/page_alloc.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
mm/page_alloc.c +1 -1
index 4d926f1..9febc62 100644
@@ -5689,7 +5689,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);
Signature · 11 lines
Best regards,                                         _     _
.o. | Liege of Serenely Enlightened Majesty of      o' \,=./ `o
..o | Computer Science,  Michał “mina86” Nazarewicz    (o o)
ooo +----<email/xmpp: [email protected]>--------------ooO--(_)--Ooo--

--
To unsubscribe, send a message with 'unsubscribe linux-mm' in
the body to [email protected].  For more info on Linux MM,
see: http://www.linux-mm.org/ .
Fight unfair telecom internet charges in Canada: sign http://stopthemeter.ca/
Don't email: <a href=mailto:"[email protected]"> [email protected] </a>
#2 lore raw

Hello,

Quoted 19 lines · Michal Nazarewicz
Quoted 5 lines · Minchan Kim

__alloc_contig_migrate_range calls migrate_pages with wrong argument for migrate_mode. Fix it.

Cc Marek Szyprowski <[email protected]>

mm/page_alloc.c static int __alloc_contig_migrate_range(unsigned long start, unsigned

Quoted 9 lines
---
 mm/page_alloc.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
mm/page_alloc.c +0 -0
index 4d926f1..9febc62 100644
@@ -5689,7 +5689,7 @@ static int __alloc_contig_migrate_range(unsigned long start, unsigned

long end)

Quoted 7 lines

mm/page_alloc.c static int __alloc_contig_migrate_range(unsigned long start, unsigned long end) · line 5695

Quoted 6 lines
mm/page_alloc.c +1 -1
 		ret = migrate_pages(&cc.migratepages,
 				    __alloc_contig_migrate_alloc,
-				    0, false, true);
+				    0, false, MIGRATE_SYNC);
 	}
 	putback_lru_pages(&cc.migratepages);

Thanks for the patch, I will add it to my kernel tree.

Best regards

Signature · 10 lines
Marek Szyprowski
Samsung Poland R&D Center


--
To unsubscribe, send a message with 'unsubscribe linux-mm' in
the body to [email protected].  For more info on Linux MM,
see: http://www.linux-mm.org/ .
Fight unfair telecom internet charges in Canada: sign http://stopthemeter.ca/
Don't email: <a href=mailto:"[email protected]"> [email protected] </a>