Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:mm\vmscan.c Create Date:2022-07-28 14:19:32
Last Modify:2022-05-23 13:41:30 Copyright©Brick
home page Tree
Annotation kernel can get tool activityDownload SCCTChinese

Name:Throttle direct reclaimers if backing storage is backed by the network* and the PFMEMALLOC reserve for the preferred node is getting dangerously* depleted. kswapd will continue to make progress and wake the processes* when the low watermark is reached.

Proto:static bool throttle_direct_reclaim(gfp_t gfp_mask, struct zonelist *zonelist, nodemask_t *nodemask)

Type:bool

Parameter:

TypeParameterName
gfp_tgfp_mask
struct zonelist *zonelist
nodemask_t *nodemask
3177  pg_data_t * pgdat = NULL
3186  If flags & I am a kernel thread Then Go to out
3193  If fatal_signal_pending(current process) Then Go to out
3212  If zone_idx() returns 0 for the ZONE_DMA zone, 1 for the ZONE_NORMAL zone, etc.(zone) > * Normal addressable memory is in ZONE_NORMAL. DMA operations can be * performed on pages in ZONE_NORMAL if the DMA devices support * transfers to all addressable memory. Then Continue
3216  pgdat = zone_pgdat
3217  If allow_direct_reclaim(pgdat) Then Go to out
3219  Break
3223  If Not pgdat Then Go to out
3227  Disable counters
3237  If Not (gfp_mask & __GFP_FS) Then
3238  wait_event_interruptible_timeout - sleep until a condition gets true or a timeout elapses*@wq_head: the waitqueue to wait on*@condition: a C expression for the event to wait for*@timeout: timeout, in jiffies* The process is put to sleep (pfmemalloc_wait, allow_direct_reclaim(pgdat), HZ)
3241  Go to check_pending
3245  wait_event_killable - sleep until a condition gets true*@wq_head: the waitqueue to wait on*@condition: a C expression for the event to wait for* The process is put to sleep (TASK_KILLABLE) until the*@condition evaluates to true or a signal is received.(pfmemalloc_wait, allow_direct_reclaim(pgdat))
3248  check_pending :
3249  If fatal_signal_pending(current process) Then Return true
3252  out :
3253  Return false
Caller
NameDescribe
try_to_free_pages