hulk inclusion category: bugfix bugzilla: https://gitee.com/openeuler/kernel/issues/I9R3AY CVE: NA
--------------------------------
Before commit 738fe30dc41a, the PG_hugetlb is recorded in page->flags, and will be cleared by clear_compound_page(). Now since PG_hugetlb turned to record into page_type, we have to clear it by __folio_clear_hugetlb().
Fixes: 738fe30dc41a ("mm: turn folio_test_hugetlb into a PageType") Signed-off-by: Liu Shixin liushixin2@huawei.com --- mm/dynamic_pool.c | 1 + 1 file changed, 1 insertion(+)
diff --git a/mm/dynamic_pool.c b/mm/dynamic_pool.c index b1590362c2c9..41a627431ea6 100644 --- a/mm/dynamic_pool.c +++ b/mm/dynamic_pool.c @@ -269,6 +269,7 @@ static int dpool_demote_huge_page(struct pages_pool *src_pool, __ClearPageDpool(page); src_pool->free_pages--;
+ __folio_clear_hugetlb(page_folio(page)); clear_compound_page(page_folio(page), PMD_ORDER); for (i = 0; i < nr_pages; i++) { subpage = folio_page(folio, i);