Function report | 
Source Code:mm\swapfile.c | 
Create Date:2022-07-28 15:17:11 | 
| Last Modify:2020-03-17 22:19:49 | Copyright©Brick | 
| home page | Tree | 
| Annotation kernel can get tool activity | Download SCCT | Chinese | 
Name:swap_free_cluster
Proto:static void swap_free_cluster(struct swap_info_struct *si, unsigned long idx)
Type:void
Parameter:
| Type | Parameter | Name | 
|---|---|---|
| struct swap_info_struct * | si | |
| unsigned long | idx | 
| 966 | offset = idx * SWAPFILE_CLUSTER | 
| 969 | ci = lock_cluster(si, offset) | 
| 971 | cluster_set_count_flag(ci, 0, 0) | 
| 972 | free_cluster(si, idx) | 
| 973 | unlock_cluster(ci) | 
| 974 | swap_range_free(si, offset, SWAPFILE_CLUSTER) | 
| Name | Describe | 
|---|---|
| put_swap_page | Called after dropping swapcache to decrease refcnt to swap entries. | 
| 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  |