-
- Downloads
mm: vmscan: consolidate shrinker_maps handling code
The shrinker map management is not purely memcg specific, it is at the intersection between memory cgroup and shrinkers. It's allocation and assignment of a structure, and the only memcg bit is the map is being stored in a memcg structure. So move the shrinker_maps handling code into vmscan.c for tighter integration with shrinker code, and remove the "memcg_" prefix. There is no functional change. Link: https://lkml.kernel.org/r/20210311190845.9708-3-shy828301@gmail.com Signed-off-by:Yang Shi <shy828301@gmail.com> Acked-by:
Vlastimil Babka <vbabka@suse.cz> Acked-by:
Kirill Tkhai <ktkhai@virtuozzo.com> Acked-by:
Roman Gushchin <guro@fb.com> Reviewed-by:
Shakeel Butt <shakeelb@google.com> Cc: Dave Chinner <david@fromorbit.com> Cc: Johannes Weiner <hannes@cmpxchg.org> Cc: Michal Hocko <mhocko@suse.com> Signed-off-by:
Andrew Morton <akpm@linux-foundation.org> Signed-off-by:
Linus Torvalds <torvalds@linux-foundation.org>
Showing
- include/linux/memcontrol.h 5 additions, 6 deletionsinclude/linux/memcontrol.h
- mm/huge_memory.c 2 additions, 2 deletionsmm/huge_memory.c
- mm/list_lru.c 3 additions, 3 deletionsmm/list_lru.c
- mm/memcontrol.c 3 additions, 127 deletionsmm/memcontrol.c
- mm/vmscan.c 129 additions, 3 deletionsmm/vmscan.c
Loading
Please register or sign in to comment