| 函数逻辑报告 | 
| Source Code: mm\swapfile.c | Create Date:2022-07-27 16:46:59 | 
| Last Modify:2020-03-17 22:19:49 | Copyright©Brick | 
| 首页 | 函数Tree | 
| 注解内核,赢得工具 | 下载SCCT | English | 
函数名称:Doing discard actually. After a cluster discard is finished, the cluster* will be added to free cluster list. caller should hold si->lock.
函数原型:static void swap_do_scheduled_discard(struct swap_info_struct *si)
返回类型:void
参数:
| 类型 | 参数 | 名称 | 
|---|---|---|
| struct swap_info_struct * | si | 
| 476 | 当非cluster_list_empty( & discard clusters list )循环 | 
| 477 | idx等于cluster_list_del_first( & discard clusters list , info) | 
| 478 | 自旋锁解锁 | 
| 483 | 加自旋锁 | 
| 484 | ci等于lock_cluster(si, idx * SWAPFILE_CLUSTER) | 
| 485 | __free_cluster(si, idx) | 
| 488 | unlock_cluster(ci) | 
| 名称 | 描述 | 
|---|---|
| swap_discard_work | |
| scan_swap_map_try_ssd_cluster | Try to get a swap entry from current cpu's swap entry pool (a cluster). This* might involve allocating a new cluster for current CPU too. | 
| 源代码转换工具 开放的插件接口 | X | 
|---|---|
| 支持:c/c++/esqlc/java Oracle/Informix/Mysql 插件可实现:逻辑报告 代码生成和批量转换代码 |