Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:solate_migratepages_range() - isolate migrate-able pages in a PFN range*@cc: Compaction control structure

Proto:unsigned long isolate_migratepages_range(struct compact_control *cc, unsigned long start_pfn, unsigned long end_pfn)

Type:unsigned long

Parameter:

TypeParameterName
struct compact_control *cc
unsigned longstart_pfn
unsigned longend_pfn
1091  pfn = start_pfn
1092  block_start_pfn = pageblock_start_pfn(pfn)
1093  If block_start_pfn < zone_start_pfn == zone_start_paddr >> PAGE_SHIFT Then block_start_pfn = zone_start_pfn == zone_start_paddr >> PAGE_SHIFT
1095  block_end_pfn = pageblock_end_pfn(pfn)
1097  When pfn < end_pfn cycle
1101  block_end_pfn = min - return minimum of two values of the same or compatible types*@x: first value*@y: second value(block_end_pfn, end_pfn)
1103  If Not pageblock_pfn_to_page(block_start_pfn, block_end_pfn, zone) Then Continue
1107  pfn = solate_migratepages_block() - isolate all migrate-able pages within* a single pageblock*@cc: Compaction control structure.*@low_pfn: The first PFN to isolate*@end_pfn: The one-past-the-last PFN to isolate, within same pageblock
1110  If Not pfn Then Break
1113  If Number of pages to migrate == COMPACT_CLUSTER_MAX Then Break
1117  Return pfn