Message ID | 20210112045720.laKfzIZ7r%akpm@linux-foundation.org |
---|---|
State | Superseded |
Headers | show |
Series | + mm-hugetlb-remove-vm_bug_on_page-from-page_huge_active.patch added to -mm tree | expand |
--- a/mm/hugetlb.c~mm-hugetlb-remove-vm_bug_on_page-from-page_huge_active +++ a/mm/hugetlb.c @@ -1361,8 +1361,7 @@ struct hstate *size_to_hstate(unsigned l */ bool page_huge_active(struct page *page) { - VM_BUG_ON_PAGE(!PageHuge(page), page); - return PageHead(page) && PagePrivate(&page[1]); + return PageHeadHuge(page) && PagePrivate(&page[1]); } /* never called for tail page */