Commit 8110c42f authored by Liu Shixin's avatar Liu Shixin
Browse files

mm/dynamic_pool: don't set subpool for page from dynamic pool

hulk inclusion
category: feature
bugzilla: https://gitee.com/openeuler/kernel/issues/I9CDZZ



--------------------------------

Dynamic pool has individual resv_huge_pages value, don't account the page
into subpool. The subpool record in page is only used when free the page,
so there is no other effects.

Signed-off-by: default avatarLiu Shixin <liushixin2@huawei.com>
parent 9532dabe
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -3258,6 +3258,7 @@ struct folio *alloc_hugetlb_folio(struct vm_area_struct *vma,

	spin_unlock_irq(&hugetlb_lock);

	if (!page_from_dynamic_pool(folio_page(folio, 0)))
		hugetlb_set_folio_subpool(folio, spool);

	map_commit = vma_commit_reservation(h, vma, addr);