Re: [v6 PATCH 02/11] mm: vmscan: consolidate shrinker_maps handling code

2021-02-03 Thread Kirill Tkhai
On 03.02.2021 20:20, Yang Shi wrote: > 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 >

[v6 PATCH 02/11] mm: vmscan: consolidate shrinker_maps handling code

2021-02-03 Thread Yang Shi
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