函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:Add a cluster to discard list and schedule it to do discard

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

返回类型:void

参数:

类型参数名称
struct swap_info_struct *si
unsigned intidx
449  memset(vmalloc'ed array of usage counts + idx * SWAPFILE_CLUSTER, Note pageblock is bad, in first swap_map , SWAPFILE_CLUSTER)
452  cluster_list_add_tail( & discard clusters list , cluster info. Only for SSD , idx)
454  schedule_work - put work task in global workqueue*@work: job to be done* Returns %false if @work was already on the kernel-global workqueue and* %true otherwise
调用者
名称描述
free_cluster