[lkml]   [2007]   [Feb]   [27]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
Messages in this thread
Patch in this message
Subject[PATCH 5/5] lumpy: only check for valid pages when holes are present

We only need to check that each page is valid with pfn_valid when
we are on an architecture which had holes within zones. Make this
check conditional.

Signed-off-by: Andy Whitcroft <>
diff --git a/mm/vmscan.c b/mm/vmscan.c
index bef7e92..f249ad7 100644
--- a/mm/vmscan.c
+++ b/mm/vmscan.c
@@ -725,9 +725,11 @@ static unsigned long isolate_lru_pages(unsigned long nr_to_scan,
/* The target page is in the block, ignore it. */
if (unlikely(pfn == page_pfn))
/* Avoid holes within the zone. */
if (unlikely(!pfn_valid(pfn)))

cursor_page = pfn_to_page(pfn);
/* Check that we have not crossed a zone boundary. */
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to
More majordomo info at
Please read the FAQ at
 \ /
  Last update: 2007-02-27 20:39    [W:0.075 / U:3.916 seconds]
©2003-2018 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site