Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:We don't consider PMD mapped swapping or file mapped pages because THP does* not support them for now.* Caller should make sure that pmd_trans_huge(pmd) is true.

Proto:static enum mc_target_type get_mctgt_type_thp(struct vm_area_struct *vma, unsigned long addr, pmd_t pmd, union mc_target *target)

Type:enum mc_target_type

Parameter:

TypeParameterName
struct vm_area_struct *vma
unsigned longaddr
pmd_tpmd
union mc_target *target
5450  struct page * page = NULL
5451  ret = MC_TARGET_NONE
5453  If Value for the false possibility is greater at compile time(is_swap_pmd(pmd)) Then
5454  VM_BUG_ON(thp_migration_supported() && !is_pmd_migration_entry(pmd))
5456  Return ret
5458  page = Currently stuck as a macro due to indirect forward reference to* linux/mmzone.h's __section_mem_map_addr() definition:(pmd)
5459  VM_BUG_ON_PAGE(!page || !PageHead(page), page)
5460  If Not (flags & Types of charges to be moved.) Then Return ret
5462  If mem_cgroup == from Then
5463  ret = MC_TARGET_PAGE
5464  If target Then
5465  get_page(page)
5466  page = page
5469  Return ret
Caller
NameDescribe
mem_cgroup_count_precharge_pte_range
mem_cgroup_move_charge_pte_range