Messages in this thread Patch in this message | | | From | Andy Whitcroft <> | Subject | [PATCH 2/3] anti-fragmentation: switch over to pfn_valid_within() | Date | Wed, 21 Mar 2007 19:15:57 +0000 |
| |
Move to using pfn_valid_within().
Signed-off-by: Andy Whitcroft <andyw@uk.ibm.com> Acked-by: Mel Gorman <mel@csn.ul.ie> --- diff --git a/mm/page_alloc.c b/mm/page_alloc.c index 695b5a6..3d7c29e 100644 --- a/mm/page_alloc.c +++ b/mm/page_alloc.c @@ -747,12 +747,10 @@ int move_freepages(struct zone *zone, #endif for (page = start_page; page < end_page;) { -#ifdef CONFIG_HOLES_IN_ZONE - if (!pfn_valid(page_to_pfn(page))) { + if (!pfn_valid_within(page_to_pfn(page))) { page++; continue; } -#endif if (!PageBuddy(page)) { page++; - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/
| |