Message ID | 20210110124017.86750-7-songmuchun@bytedance.com |
---|---|
State | Superseded |
Headers | show |
Series | None | expand |
diff --git a/mm/hugetlb.c b/mm/hugetlb.c index e7ed30afbb8f..5940bf0c49b9 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 */