Function report |
Source Code:mm\memcontrol.c |
Create Date:2022-07-28 16:10: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_resize_max
Proto:static int mem_cgroup_resize_max(struct mem_cgroup *memcg, unsigned long max, bool memsw)
Type:int
Parameter:
Type | Parameter | Name |
---|---|---|
struct mem_cgroup * | memcg | |
unsigned long | max | |
bool | memsw |
2992 | bool enlarge = false |
2993 | bool drained = false |
2996 | counter = If memsw Then Legacy consumer-oriented counters Else Accounted resources |
2998 | Do |
2999 | If signal_pending(current process) Then |
3004 | mutex_lock( & memcg_max_mutex) |
3011 | If Not limits_invariant Then |
3014 | Break |
3021 | If Not ret Then Break |
3024 | If Not drained Then |
3025 | Drains all per-CPU charge caches for given root_memcg resp. subtree* of the hierarchy under it. |
3026 | drained = true |
3027 | Continue |
3030 | If Not try_to_free_mem_cgroup_pages(memcg, 1, GFP_KERNEL, !memsw) Then |
3035 | When (true) cycle |
3037 | If Not ret && enlarge Then memcg_oom_recover(memcg) |
3040 | Return ret |
Name | Describe |
---|---|
mem_cgroup_write | The user of this function is...* RES_LIMIT. |
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 |