Function report | 
Source Code:mm\swapfile.c | 
Create Date:2022-07-28 15:16:44 | 
| Last Modify:2020-03-17 22:19:49 | Copyright©Brick | 
| home page | Tree | 
| Annotation kernel can get tool activity | Download SCCT | Chinese | 
Name:It's possible scan_swap_map() uses a free cluster in the middle of free* cluster list. Avoiding such abuse to avoid list corruption.
Proto:static bool scan_swap_map_ssd_cluster_conflict(struct swap_info_struct *si, unsigned long offset)
Type:bool
Parameter:
| Type | Parameter | Name | 
|---|---|---|
| struct swap_info_struct * | si | |
| unsigned long | offset | 
| 582 | offset /= SWAPFILE_CLUSTER | 
| 583 | conflict = Not cluster_list_empty( & clusters list ) && offset != cluster_list_first( & clusters list ) && cluster_is_free( & cluster info. Only for SSD [offset]) | 
| 587 | If Not conflict Then Return false | 
| 591 | cluster_set_null( & Current cluster index ) | 
| 592 | Return true | 
| Name | Describe | 
|---|---|
| scan_swap_map_slots | 
| 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  |