Message ID | 20210205023213._BtpJL1s-%akpm@linux-foundation.org |
---|---|
State | New |
Headers | show |
Series | [01/18] mm: hugetlbfs: fix cannot migrate the fallocated HugeTLB page | 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 */