diff options
| author | 2011-03-08 17:21:49 +0100 | |
|---|---|---|
| committer | 2011-03-08 17:21:52 +0100 | |
| commit | 86cb2ec7b22a0a89b8660110dc03321fadbef45f (patch) | |
| tree | c4162b0ab7c4e3602e2b7a6a6fd47c55c3315fea /mm/page_alloc.c | |
| parent | perf report tui: Improve multi event session support (diff) | |
| parent | Linux 2.6.38-rc8 (diff) | |
| download | wireguard-linux-86cb2ec7b22a0a89b8660110dc03321fadbef45f.tar.xz wireguard-linux-86cb2ec7b22a0a89b8660110dc03321fadbef45f.zip | |
Merge commit 'v2.6.38-rc8' into perf/core
Merge reason: Merge latest fixes.
Signed-off-by: Ingo Molnar <mingo@elte.hu>
Diffstat (limited to 'mm/page_alloc.c')
| -rw-r--r-- | mm/page_alloc.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/mm/page_alloc.c b/mm/page_alloc.c index a873e61e312e..cdef1d4b4e47 100644 --- a/mm/page_alloc.c +++ b/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)) |
