Function report |
Source Code:mm\memcontrol.c |
Create Date:2022-07-28 16:09:59 |
Last Modify:2020-03-12 14:18:49 | Copyright©Brick |
home page | Tree |
Annotation kernel can get tool activity | Download SCCT | Chinese |
Name:mem_cgroup_soft_reclaim
Proto:static int mem_cgroup_soft_reclaim(struct mem_cgroup *root_memcg, pg_data_t *pgdat, gfp_t gfp_mask, unsigned long *total_scanned)
Type:int
Parameter:
Type | Parameter | Name |
---|---|---|
struct mem_cgroup * | root_memcg | |
pg_data_t * | pgdat | |
gfp_t | gfp_mask | |
unsigned long * | total_scanned |
1587 | struct mem_cgroup * victim = NULL |
1588 | total = 0 |
1589 | loop = 0 |
1592 | struct mem_cgroup_reclaim_cookie reclaim = {pgdat = pgdat, } |
1596 | excess = soft_limit_excess(root_memcg) |
1598 | When 1 cycle |
1600 | If Not victim Then |
1624 | total_scanned += nr_scanned |
1625 | If Not soft_limit_excess(root_memcg) Then Break |
1629 | Return total |
Name | Describe |
---|---|
mem_cgroup_soft_limit_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 |