Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:change_pageblock_range

Proto:static void change_pageblock_range(struct page *pageblock_page, int start_order, int migratetype)

Type:void

Parameter:

TypeParameterName
struct page *pageblock_page
intstart_order
intmigratetype
2306  nr_pageblocks = 1 << start_order - Huge pages are a constant size
2308  When nr_pageblocks-- cycle
2309  set_pageblock_migratetype(pageblock_page, migratetype)
2310  pageblock_page += pageblock_nr_pages
Caller
NameDescribe
steal_suitable_fallbackThis function implements actual steal behaviour. If order is large enough,* we can steal whole pageblock. If not, we first move freepages in this* pageblock to our migratetype and determine how many already-allocated pages