Function report |
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 activity | Download SCCT | Chinese |
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:
| Type | Parameter | Name |
|---|---|---|
| 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 |
| 2950 | If Not cgroup_reclaim(sc) Then |
| 2951 | If Not cpuset_zone_allowed(zone, GFP_KERNEL | __GFP_HARDWALL) Then Continue |
| 2967 | One of the zones is ready for compaction = true |
| 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 |
| Name | Describe |
|---|---|
| do_try_to_free_pages | This is the main entry point to direct page reclaim |
| Source code conversion tool public plug-in interface | X |
|---|---|
| Support c/c++/esqlc/java Oracle/Informix/Mysql Plug-in can realize: logical Report Code generation and batch code conversion |