Message ID | 20210208172041.1V98czMC9%akpm@linux-foundation.org |
---|---|
State | New |
Headers | show |
Series | [merged] mm-hugetlb-remove-vm_bug_on_page-from-page_huge_active.patch removed from -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 */