[PATCH 2/3] anti-fragmentation: switch over to pfn_valid_within()

From: Andy Whitcroft
Date: Wed Mar 21 2007 - 15:16:37 EST



Move to using pfn_valid_within().

Signed-off-by: Andy Whitcroft <andyw@xxxxxxxxxx>
Acked-by: Mel Gorman <mel@xxxxxxxxx>
---
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@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/