Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:page_move_anon_rmap - move a page to our anon_vma*@page: the page to move to our anon_vma*@vma: the vma the page belongs to* When a page belongs exclusively to one process after a COW event,* that page can be moved into the anon_vma that belongs to just

Proto:void page_move_anon_rmap(struct page *page, struct vm_area_struct *vma)

Type:void

Parameter:

TypeParameterName
struct page *page
struct vm_area_struct *vma
1023  anon_vma = Serialized by page_table_lock
1025  page = compound_head(page)
1027  VM_BUG_ON_PAGE(!PageLocked(page), page)
1028  VM_BUG_ON_VMA(!anon_vma, vma)
1030  anon_vma = anon_vma + On an anonymous page mapped into a user virtual memory area,* page->mapping points to its anon_vma, not to a struct address_space;* with the PAGE_MAPPING_ANON bit set to distinguish it
1036  WRITE_ONCE( See page-flags.h for PAGE_MAPPING_FLAGS , (structaddress_space * )anon_vma)
Caller
NameDescribe
hugetlb_cowHugetlb_cow() should be called with page lock of the original hugepage held.* Called with hugetlb_instantiation_mutex held and pte_page locked so we* cannot race with other handlers or page migration.
reuse_ksm_page