Re: [PATCH 08/15] mm: mmzone: MIGRATE_CMA migration type added

2012-02-05 Thread Michal Nazarewicz
+static inline bool migrate_async_suitable(int migratetype) On Fri, 03 Feb 2012 15:19:54 +0100, Hillf Danton dhi...@gmail.com wrote: Just nitpick, since the helper is not directly related to what async means, how about migrate_suitable(int migrate_type) ? 2012/2/3 Michal Nazarewicz

Re: [PATCH 08/15] mm: mmzone: MIGRATE_CMA migration type added

2012-02-04 Thread Hillf Danton
2012/2/3 Michal Nazarewicz min...@mina86.com: +static inline bool migrate_async_suitable(int migratetype) On Fri, 03 Feb 2012 15:19:54 +0100, Hillf Danton dhi...@gmail.com wrote: Just nitpick, since the helper is not directly related to what async means, how about migrate_suitable(int

[PATCH 08/15] mm: mmzone: MIGRATE_CMA migration type added

2012-02-03 Thread Marek Szyprowski
From: Michal Nazarewicz min...@mina86.com The MIGRATE_CMA migration type has two main characteristics: (i) only movable pages can be allocated from MIGRATE_CMA pageblocks and (ii) page allocator will never change migration type of MIGRATE_CMA pageblocks. This guarantees (to some degree) that

Re: [PATCH 08/15] mm: mmzone: MIGRATE_CMA migration type added

2012-02-03 Thread Mel Gorman
On Fri, Feb 03, 2012 at 01:18:51PM +0100, Marek Szyprowski wrote: From: Michal Nazarewicz min...@mina86.com The MIGRATE_CMA migration type has two main characteristics: (i) only movable pages can be allocated from MIGRATE_CMA pageblocks and (ii) page allocator will never change migration

Re: [PATCH 08/15] mm: mmzone: MIGRATE_CMA migration type added

2012-02-03 Thread Hillf Danton
Hello Marek On Fri, Feb 3, 2012 at 8:18 PM, Marek Szyprowski m.szyprow...@samsung.com wrote: From: Michal Nazarewicz min...@mina86.com The MIGRATE_CMA migration type has two main characteristics: (i) only movable pages can be allocated from MIGRATE_CMA pageblocks and (ii) page allocator will

Re: [PATCH 08/15] mm: mmzone: MIGRATE_CMA migration type added

2012-02-03 Thread Michal Nazarewicz
On Fri, Feb 3, 2012 at 8:18 PM, Marek Szyprowski m.szyprow...@samsung.com wrote: From: Michal Nazarewicz min...@mina86.com diff --git a/mm/compaction.c b/mm/compaction.c index d5174c4..a6e7c64 100644 --- a/mm/compaction.c +++ b/mm/compaction.c @@ -45,6 +45,11 @@ static void map_pages(struct

Re: [PATCH 08/15] mm: mmzone: MIGRATE_CMA migration type added

2012-01-30 Thread Mel Gorman
On Thu, Jan 26, 2012 at 10:00:50AM +0100, Marek Szyprowski wrote: From: Michal Nazarewicz min...@mina86.com The MIGRATE_CMA migration type has two main characteristics: (i) only movable pages can be allocated from MIGRATE_CMA pageblocks and (ii) page allocator will never change migration

Re: [PATCH 08/15] mm: mmzone: MIGRATE_CMA migration type added

2012-01-30 Thread Michal Nazarewicz
On Thu, Jan 26, 2012 at 10:00:50AM +0100, Marek Szyprowski wrote: From: Michal Nazarewicz min...@mina86.com @@ -875,10 +895,15 @@ struct page *__rmqueue_smallest(struct zone *zone, unsigned int order, * This array describes the order lists are fallen back to when * the free lists for the

Re: [PATCH 08/15] mm: mmzone: MIGRATE_CMA migration type added

2012-01-30 Thread Mel Gorman
On Mon, Jan 30, 2012 at 02:06:50PM +0100, Michal Nazarewicz wrote: @@ -1017,11 +1049,14 @@ __rmqueue_fallback(struct zone *zone, int order, int start_migratetype) rmv_page_order(page); /* Take ownership for orders = pageblock_order */ -

[PATCH 08/15] mm: mmzone: MIGRATE_CMA migration type added

2012-01-26 Thread Marek Szyprowski
From: Michal Nazarewicz min...@mina86.com The MIGRATE_CMA migration type has two main characteristics: (i) only movable pages can be allocated from MIGRATE_CMA pageblocks and (ii) page allocator will never change migration type of MIGRATE_CMA pageblocks. This guarantees (to some degree) that