Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:mm\swapfile.c Create Date:2022-07-28 15:16:34
Last Modify:2020-03-17 22:19:49 Copyright©Brick
home page Tree
Annotation kernel can get tool activityDownload SCCTChinese

Name:Add a cluster to discard list and schedule it to do discard

Proto:static void swap_cluster_schedule_discard(struct swap_info_struct *si, unsigned int idx)

Type:void

Parameter:

TypeParameterName
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
Caller
NameDescribe
free_cluster