Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:ksm_migrate_page

Proto:void ksm_migrate_page(struct page *newpage, struct page *oldpage)

Type:void

Parameter:

TypeParameterName
struct page *newpage
struct page *oldpage
2685  VM_BUG_ON_PAGE(!PageLocked(oldpage), oldpage)
2686  VM_BUG_ON_PAGE(!PageLocked(newpage), newpage)
2687  VM_BUG_ON_PAGE( See page-flags.h for PAGE_MAPPING_FLAGS != See page-flags.h for PAGE_MAPPING_FLAGS , newpage)
2689  stable_node = page_stable_node(newpage)
2690  If stable_node Then
2691  VM_BUG_ON_PAGE(kpfn != page_to_pfn(oldpage), oldpage)
2692  kpfn = page_to_pfn(newpage)
2699  smp_wmb()
2700  set_page_stable_node(oldpage, NULL)
Caller
NameDescribe
migrate_page_statesCopy the page to its new location