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))