函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:__free_cluster

函数原型:static void __free_cluster(struct swap_info_struct *si, unsigned long idx)

返回类型:void

参数:

类型参数名称
struct swap_info_struct *si
unsigned longidx
459  ci等于cluster info. Only for SSD
461  cluster_set_flag(ci + idx, This cluster is free )
462  cluster_list_add_tail( & clusters list , ci, idx)
调用者
名称描述
swap_do_scheduled_discardDoing discard actually. After a cluster discard is finished, the cluster* will be added to free cluster list. caller should hold si->lock.
free_cluster