From edbb90ea9e3abcb0c13b84f780b9dc0b9564aa12 Mon Sep 17 00:00:00 2001 From: Namhyung Kim Date: Fri, 25 Feb 2011 14:44:25 -0800 Subject: [PATCH] --- yaml --- r: 233698 b: refs/heads/master c: 29723fccc837d20039078f7a571e8d457eb0d6c6 h: refs/heads/master v: v3 --- [refs] | 2 +- trunk/mm/page_alloc.c | 5 ++--- 2 files changed, 3 insertions(+), 4 deletions(-) diff --git a/[refs] b/[refs] index b608cce82397..2401012031b6 100644 --- a/[refs] +++ b/[refs] @@ -1,2 +1,2 @@ --- -refs/heads/master: a2d6d2fa90c0e1d2cc1d59ccb5bbe93bb28b7413 +refs/heads/master: 29723fccc837d20039078f7a571e8d457eb0d6c6 diff --git a/trunk/mm/page_alloc.c b/trunk/mm/page_alloc.c index a873e61e312e..cdef1d4b4e47 100644 --- a/trunk/mm/page_alloc.c +++ b/trunk/mm/page_alloc.c @@ -5376,10 +5376,9 @@ __count_immobile_pages(struct zone *zone, struct page *page, int count) for (found = 0, iter = 0; iter < pageblock_nr_pages; iter++) { unsigned long check = pfn + iter; - if (!pfn_valid_within(check)) { - iter++; + if (!pfn_valid_within(check)) continue; - } + page = pfn_to_page(check); if (!page_count(page)) { if (PageBuddy(page))