Commit 93e91196 authored by David Mosberger's avatar David Mosberger

ia64: A few huge page fixes (patch by Rohit Seth).

parent 138449e2
...@@ -411,8 +411,8 @@ efi_init (void) ...@@ -411,8 +411,8 @@ efi_init (void)
#ifdef CONFIG_HUGETLB_PAGE #ifdef CONFIG_HUGETLB_PAGE
/* Just duplicating the above algo for lpzone start */ /* Just duplicating the above algo for lpzone start */
for (cp = saved_command_line; *cp; ) { for (cp = saved_command_line; *cp; ) {
if (memcmp(cp, "lpmem=", 8) == 0) { if (memcmp(cp, "lpmem=", 6) == 0) {
cp += 8; cp += 6;
htlbzone_pages = memparse(cp, &end); htlbzone_pages = memparse(cp, &end);
htlbzone_pages = (htlbzone_pages >> HPAGE_SHIFT); htlbzone_pages = (htlbzone_pages >> HPAGE_SHIFT);
if (end != cp) if (end != cp)
......
...@@ -504,7 +504,7 @@ set_hugetlb_mem_size (int count) ...@@ -504,7 +504,7 @@ set_hugetlb_mem_size (int count)
lcount = count - htlbzone_pages; lcount = count - htlbzone_pages;
if (lcount > 0) { /*Increase the mem size. */ if (lcount > 0) { /*Increase the mem size. */
while (lcount--) { while (lcount--) {
page = alloc_pages(GFP_ATOMIC, HUGETLB_PAGE_ORDER); page = alloc_pages(__GFP_HIGHMEM, HUGETLB_PAGE_ORDER);
if (page == NULL) if (page == NULL)
break; break;
map = page; map = page;
......
...@@ -457,7 +457,7 @@ mem_init (void) ...@@ -457,7 +457,7 @@ mem_init (void)
htlbzone_pages = (max_low_pfn >> ((HPAGE_SHIFT - PAGE_SHIFT) + 1)); htlbzone_pages = (max_low_pfn >> ((HPAGE_SHIFT - PAGE_SHIFT) + 1));
INIT_LIST_HEAD(&htlbpage_freelist); INIT_LIST_HEAD(&htlbpage_freelist);
for (i = 0; i < htlbzone_pages; i++) { for (i = 0; i < htlbzone_pages; i++) {
page = alloc_pages(GFP_ATOMIC, HUGETLB_PAGE_ORDER); page = alloc_pages(__GFP_HIGHMEM, HUGETLB_PAGE_ORDER);
if (!page) if (!page)
break; break;
map = page; map = page;
......
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