函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:mm\swapfile.c Create Date:2022-07-27 16:46:49
Last Modify:2020-03-17 22:19:49 Copyright©Brick
首页 函数Tree
注解内核,赢得工具下载SCCTEnglish

函数名称:cluster_set_null

函数原型:static inline void cluster_set_null(struct swap_cluster_info *info)

返回类型:void

参数:

类型参数名称
struct swap_cluster_info *info
322  flags等于This cluster has no next cluster
323  data等于0
调用者
名称描述
cluster_list_init
cluster_list_del_first
scan_swap_map_ssd_cluster_conflictIt's possible scan_swap_map() uses a free cluster in the middle of free* cluster list. Avoiding such abuse to avoid list corruption.
scan_swap_map_try_ssd_clusterTry 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.
SYSCALL_DEFINE2