[lkml]   [2012]   [Jan]   [30]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
Messages in this thread
SubjectRe: [PATCH 03/15] mm: compaction: introduce isolate_migratepages_range().
On Thu, Jan 26, 2012 at 10:00:45AM +0100, Marek Szyprowski wrote:
> From: Michal Nazarewicz <>
> This commit introduces isolate_migratepages_range() function which
> extracts functionality from isolate_migratepages() so that it can be
> used on arbitrary PFN ranges.
> isolate_migratepages() function is implemented as a simple wrapper
> around isolate_migratepages_range().
> Signed-off-by: Michal Nazarewicz <>
> Signed-off-by: Marek Szyprowski <>

Super, this is much easier to read. I have just one nit below but once
that is fixed;

Acked-by: Mel Gorman <>

> @@ -313,7 +316,7 @@ static isolate_migrate_t isolate_migratepages(struct zone *zone,
> } else if (!locked)
> spin_lock_irq(&zone->lru_lock);
> - if (!pfn_valid_within(low_pfn))
> + if (!pfn_valid(low_pfn))
> continue;
> nr_scanned++;

This chunk looks unrelated to the rest of the patch.

I think what you are doing is patching around a bug that CMA exposed
which is very similar to the bug report at . Is this true?

If so, I posted a fix that only calls pfn_valid() when necessary. Can
you check if that works for you and if so, drop this hunk please? If
the patch does not work for you, then this hunk still needs to be
in a separate patch and handled separately as it would also be a fix
for -stable.

Mel Gorman

 \ /
  Last update: 2012-01-30 12:27    [W:0.123 / U:5.784 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site