Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:mm\hugetlb.c Create Date:2022-07-28 15:29:50
Last Modify:2020-03-12 14:18:49 Copyright©Brick
home page Tree
Annotation kernel can get tool activityDownload SCCTChinese

Name:move_hugetlb_state

Proto:void move_hugetlb_state(struct page *oldpage, struct page *newpage, int reason)

Type:void

Parameter:

TypeParameterName
struct page *oldpage
struct page *newpage
intreason
5046  h = page_hstate(oldpage)
5048  hugetlb_lock will make sure a parallel cgroup rmdir won't happen* when we migrate hugepages
5049  set_page_owner_migrate_reason(newpage, reason)
5061  If Internal hugetlb specific page flag. Do not use outside of the hugetlb* code Then
5062  old_nid = page_to_nid(oldpage)
5063  new_nid = page_to_nid(newpage)
5065  SetPageHugeTemporary(oldpage)
5066  ClearPageHugeTemporary(newpage)
5068  spin_lock( & Protects updates to hugepage_freelists, hugepage_activelist, nr_huge_pages,* free_huge_pages, and surplus_huge_pages.)
5073  spin_unlock( & Protects updates to hugepage_freelists, hugepage_activelist, nr_huge_pages,* free_huge_pages, and surplus_huge_pages.)
Caller
NameDescribe
unmap_and_move_huge_pageCounterpart of unmap_and_move_page() for hugepage migration