| 函数逻辑报告 | 
| Source Code: mm\vmscan.c | Create Date:2022-07-27 15:43:00 | 
| Last Modify:2022-05-23 13:41:30 | Copyright©Brick | 
| 首页 | 函数Tree | 
| 注解内核,赢得工具 | 下载SCCT | English | 
函数名称:Reclaim/compaction is used for high-order allocation requests. It reclaims* order-0 pages before compacting the zone. should_continue_reclaim() returns* true if more pages should be reclaimed such that when the page allocator
函数原型:static inline bool should_continue_reclaim(struct pglist_data *pgdat, unsigned long nr_reclaimed, struct scan_control *sc)
返回类型:bool
参数:
| 类型 | 参数 | 名称 | 
|---|---|---|
| struct pglist_data * | pgdat | |
| unsigned long | nr_reclaimed | |
| struct scan_control * | sc | 
| 2599 | 如果非Use reclaim/compaction for costly allocs or under memory pressure 则返回:false | 
| 2612 | 如果非nr_reclaimed则返回:false | 
| 2617 | zone等于包含了结点中各内存域的数据结构[z] | 
| 2622 | 当:compaction_suitable(zone, Allocation order , 0, The highest zone to isolate pages for reclaim from )恒等于COMPACT_SUCCESS | 
| 2624 | 返回:false | 
| 2625 | 默认 | 
| 2637 | 如果get_nr_swap_pages()大于0则inactive_lru_pages加等于node_page_state(pgdat, NR_INACTIVE_ANON) | 
| 2640 | 返回:inactive_lru_pages大于pages_for_compaction | 
| 名称 | 描述 | 
|---|---|
| shrink_node | 
| 源代码转换工具 开放的插件接口 | X | 
|---|---|
| 支持:c/c++/esqlc/java Oracle/Informix/Mysql 插件可实现:逻辑报告 代码生成和批量转换代码 |