Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:This is the direct reclaim path, for page-allocating processes. We only* try to reclaim pages from zones which will satisfy the caller's allocation* request.* If a zone is deemed to be full of pinned pages then just give it a light

Proto:static void shrink_zones(struct zonelist *zonelist, struct scan_control *sc)

Type:void

Parameter:

TypeParameterName
struct zonelist *zonelist
struct scan_control *sc
2931  pg_data_t * last_pgdat = NULL
2938  orig_mask = This context's GFP mask
2939  If buffer_heads_over_limit Then
2940  This context's GFP mask |= __GFP_HIGHMEM
2941  The highest zone to isolate pages for reclaim from = gfp_zone( This context's GFP mask )
2950  If Not cgroup_reclaim(sc) Then
2951  If Not cpuset_zone_allowed(zone, GFP_KERNEL | __GFP_HARDWALL) Then Continue
2968  Continue
2977  If zone_pgdat == last_pgdat Then Continue
2986  nr_soft_scanned = 0
2996  If zone_pgdat == last_pgdat Then Continue
2998  last_pgdat = zone_pgdat
2999  shrink_node(zone_pgdat, sc)
3006  This context's GFP mask = orig_mask
Caller
NameDescribe
do_try_to_free_pagesThis is the main entry point to direct page reclaim