| Function report | 
| Source Code: mm\swapfile.c | Create Date:2022-07-28 15:16:37 | 
| Last Modify:2020-03-17 22:19:49 | Copyright©Brick | 
| home page | Tree | 
| Annotation kernel can get tool activity | Download SCCT | Chinese | 
Name:Doing discard actually. After a cluster discard is finished, the cluster* will be added to free cluster list. caller should hold si->lock.
Proto:static void swap_do_scheduled_discard(struct swap_info_struct *si)
Type:void
Parameter:
| Type | Parameter | Name | 
|---|---|---|
| struct swap_info_struct * | si | 
| 476 | When Not cluster_list_empty( & discard clusters list ) cycle | 
| 477 | idx = cluster_list_del_first( & discard clusters list , info) | 
| 484 | ci = lock_cluster(si, idx * SWAPFILE_CLUSTER) | 
| 485 | __free_cluster(si, idx) | 
| 488 | unlock_cluster(ci) | 
| Name | Describe | 
|---|---|
| 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. | 
| Source code conversion tool public plug-in interface | X | 
|---|---|
| Support c/c++/esqlc/java Oracle/Informix/Mysql Plug-in can realize: logical Report Code generation and batch code conversion |