Commit 1f20fe30 authored by Ian Campbell's avatar Ian Campbell Committed by Russell King

[ARM] Fix use of page->count

Patch from: Ian Campbell

This changes the atomic_t in struct page named count into a private
member _count which breaks arch/arm/mm/init.c at line 80 which reads
page->count directly in show_mem().
                                                                                
The comments in the above changeset suggest that page_count(page) is
precisely equal to the old page->count semantics, even though the
semantics of _count are different, so I think the following is correct
parent bd7b6c43
...@@ -77,7 +77,7 @@ void show_mem(void) ...@@ -77,7 +77,7 @@ void show_mem(void)
else if (!page_count(page)) else if (!page_count(page))
free++; free++;
else else
shared += atomic_read(&page->count) - 1; shared += page_count(page) - 1;
page++; page++;
} while (page < end); } while (page < end);
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment