函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:mm\page_alloc.c Create Date:2022-07-27 16:34:22
Last Modify:2020-03-12 14:18:49 Copyright©Brick
首页 函数Tree
注解内核,赢得工具下载SCCTEnglish

函数名称: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

函数原型:static bool can_steal_fallback(unsigned int order, int start_mt)

返回类型:bool

参数:

类型参数名称
unsigned intorder
intstart_mt
2335  如果order大于等于Huge pages are a constant size 则返回:true
2338  如果order大于等于Huge pages are a constant size 除2或start_mt恒等于MIGRATE_RECLAIMABLEstart_mt恒等于MIGRATE_UNMOVABLEpage_group_by_mobility_disabled则返回:true
2344  返回:false
调用者
名称描述
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