Commit 40d18ebf authored by Mike Kravetz's avatar Mike Kravetz Committed by Linus Torvalds
Browse files

mm/hugetlb: remove gigantic page support for HIGHMEM

This reverts ee8f248d ("hugetlb: add phys addr to struct

At one time powerpc used this field and supporting code.  However that
was removed with commit 79cc38de ("powerpc/mm/hugetlb: Add support
for reserving gigantic huge pages via kernel command line").

There are no users of this field and supporting code, so remove it.


Signed-off-by: default avatarMike Kravetz <>
Reviewed-by: default avatarAndrew Morton <>
Acked-by: default avatarMichal Hocko <>
Cc: "Aneesh Kumar K . V" <>
Cc: Michael Ellerman <>
Cc: Benjamin Herrenschmidt <>
Cc: Cannon Matthews <>
Cc: Becky Bruce <>
Signed-off-by: default avatarAndrew Morton <>
Signed-off-by: default avatarLinus Torvalds <>
parent 9bfe5ded
......@@ -348,9 +348,6 @@ struct hstate {
struct huge_bootmem_page {
struct list_head list;
struct hstate *hstate;
phys_addr_t phys;
struct page *alloc_huge_page(struct vm_area_struct *vma,
......@@ -2139,16 +2139,9 @@ static void __init gather_bootmem_prealloc(void)
struct huge_bootmem_page *m;
list_for_each_entry(m, &huge_boot_pages, list) {
struct page *page = virt_to_page(m);
struct hstate *h = m->hstate;
struct page *page;
page = pfn_to_page(m->phys >> PAGE_SHIFT);
sizeof(struct huge_bootmem_page));
page = virt_to_page(m);
WARN_ON(page_count(page) != 1);
prep_compound_huge_page(page, h->order);
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