Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:When we are falling back to another migratetype during allocation, try to* steal extra free pages from the same pageblocks to satisfy further* allocations, instead of polluting multiple pageblocks

Proto:static bool can_steal_fallback(unsigned int order, int start_mt)

Type:bool

Parameter:

TypeParameterName
unsigned intorder
intstart_mt
2335  If order >= Huge pages are a constant size Then Return true
2338  If order >= Huge pages are a constant size / 2 || start_mt == MIGRATE_RECLAIMABLE || start_mt == MIGRATE_UNMOVABLE || page_group_by_mobility_disabled Then Return true
2344  Return false
Caller
NameDescribe
find_suitable_fallbackCheck whether there is a suitable fallback freepage with requested order.* If only_stealable is true, this function returns fallback_mt only if* we can steal other freepages all together. This would help to reduce