Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:mm\vmpressure.c Create Date:2022-07-28 16:15:23
Last Modify:2020-03-12 14:18:49 Copyright©Brick
home page Tree
Annotation kernel can get tool activityDownload SCCTChinese

Name:vmpressure_work_fn

Proto:static void vmpressure_work_fn(struct work_struct *work)

Type:void

Parameter:

TypeParameterName
struct work_struct *work
183  vmpr = work_to_vmpressure(work)
187  bool ancestor = false
188  bool signalled = false
190  spin_lock( & The lock is used to keep the scanned/reclaimed above in sync. )
199  scanned = tree_scanned
200  If Not scanned Then
201  spin_unlock( & The lock is used to keep the scanned/reclaimed above in sync. )
202  Return
205  reclaimed = tree_reclaimed
206  tree_scanned = 0
207  tree_reclaimed = 0
208  spin_unlock( & The lock is used to keep the scanned/reclaimed above in sync. )
210  level = vmpressure_calc_level(scanned, reclaimed)
212  Do
213  If vmpressure_event(vmpr, level, ancestor, signalled) Then signalled = true
215  ancestor = true
216  When vmpr = vmpressure_parent(vmpr) cycle