Commit 1541c38b authored by Andrew Morton's avatar Andrew Morton Committed by Linus Torvalds

[PATCH] fix hugetlb thinko

It's setting the page count on the wrong page.
parent b2229e8d
...@@ -527,7 +527,7 @@ int set_hugetlb_mem_size(int count) ...@@ -527,7 +527,7 @@ int set_hugetlb_mem_size(int count)
map->flags &= ~(1 << PG_locked | 1 << PG_error | 1 << PG_referenced | map->flags &= ~(1 << PG_locked | 1 << PG_error | 1 << PG_referenced |
1 << PG_dirty | 1 << PG_active | 1 << PG_reserved | 1 << PG_dirty | 1 << PG_active | 1 << PG_reserved |
1 << PG_private | 1<< PG_writeback); 1 << PG_private | 1<< PG_writeback);
set_page_count(page, 0); set_page_count(map, 0);
map++; map++;
} }
set_page_count(page, 1); set_page_count(page, 1);
......
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