Function report |
Source Code:mm\memcontrol.c |
Create Date:2022-07-28 16:08:46 |
Last Modify:2020-03-12 14:18:49 | Copyright©Brick |
home page | Tree |
Annotation kernel can get tool activity | Download SCCT | Chinese |
Name:memcg_expand_shrinker_maps
Proto:int memcg_expand_shrinker_maps(int new_id)
Type:int
Parameter:
Type | Parameter | Name |
---|---|---|
int | new_id |
396 | ret = 0 |
399 | size = DIV_ROUND_UP(new_id + 1, BITS_PER_LONG) * sizeof(unsignedlong) |
404 | mutex_lock( & memcg_shrinker_map_mutex) |
405 | If Not root_mem_cgroup Then Go to unlock |
409 | If mem_cgroup_is_root(memcg) Then Continue |
411 | ret = memcg_expand_one_shrinker_map(memcg, size, old_size) |
412 | If ret Then |
414 | Go to unlock |
417 | unlock : |
418 | If Not ret Then memcg_shrinker_map_size = size |
421 | Return ret |
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 |