函数逻辑报告 |
Source Code:mm\vmscan.c |
Create Date:2022-07-27 15:43:14 |
Last Modify:2022-05-23 13:41:30 | Copyright©Brick |
首页 | 函数Tree |
注解内核,赢得工具 | 下载SCCT | English |
函数名称:Returns true if compaction should go ahead for a costly-order request, or* the allocation would already succeed without compaction. Return false if we* should reclaim first.
函数原型:static inline bool compaction_ready(struct zone *zone, struct scan_control *sc)
返回类型:bool
参数:
类型 | 参数 | 名称 |
---|---|---|
struct zone * | zone | |
struct scan_control * | sc |
2894 | suitable等于compaction_suitable(zone, Allocation order , 0, The highest zone to isolate pages for reclaim from ) |
2895 | 如果suitable恒等于COMPACT_SUCCESS则返回:true |
2898 | 如果suitable恒等于COMPACT_SKIPPED则返回:false |
2913 | 返回:zone_watermark_ok_safe(zone, 0, watermark, The highest zone to isolate pages for reclaim from ) |
名称 | 描述 |
---|---|
shrink_zones | This is the direct reclaim path, for page-allocating processes. We only* try to reclaim pages from zones which will satisfy the caller's allocation* request.* If a zone is deemed to be full of pinned pages then just give it a light |
源代码转换工具 开放的插件接口 | X |
---|---|
支持:c/c++/esqlc/java Oracle/Informix/Mysql 插件可实现:逻辑报告 代码生成和批量转换代码 |