Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 230750
b: refs/heads/master
c: 8dd60a3
h: refs/heads/master
v: v3
  • Loading branch information
Andrea Arcangeli authored and Linus Torvalds committed Jan 14, 2011
1 parent 7b21e68 commit 1004484
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 8 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: a5b338f2b0b1ff73ae20c66ab831201549eaec01
refs/heads/master: 8dd60a3a65c1b057bf0031d28436d3447a3c545b
11 changes: 4 additions & 7 deletions trunk/mm/page_alloc.c
Original file line number Diff line number Diff line change
Expand Up @@ -651,13 +651,10 @@ static bool free_pages_prepare(struct page *page, unsigned int order)
trace_mm_page_free_direct(page, order);
kmemcheck_free_shadow(page, order);

for (i = 0; i < (1 << order); i++) {
struct page *pg = page + i;

if (PageAnon(pg))
pg->mapping = NULL;
bad += free_pages_check(pg);
}
if (PageAnon(page))
page->mapping = NULL;
for (i = 0; i < (1 << order); i++)
bad += free_pages_check(page + i);
if (bad)
return false;

Expand Down

0 comments on commit 1004484

Please sign in to comment.