Message ID | 20210113052209.75531-7-songmuchun@bytedance.com |
---|---|
State | Superseded |
Headers | show |
Series | None | expand |
diff --git a/mm/hugetlb.c b/mm/hugetlb.c index a7ed22811672..8c6005a538a2 100644 --- a/mm/hugetlb.c +++ b/mm/hugetlb.c @@ -1360,8 +1360,7 @@ struct hstate *size_to_hstate(unsigned long size) */ 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 */