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

2021-01-29 Thread Yang Shi
On Fri, Jan 29, 2021 at 6:34 AM Kirill Tkhai wrote: > > On 28.01.2021 02:33, 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 m

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

2021-01-28 Thread Yang Shi
On Thu, Jan 28, 2021 at 8:10 AM Vlastimil Babka wrote: > > On 1/28/21 12:33 AM, 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 onl

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

2021-01-28 Thread Vlastimil Babka
On 1/28/21 12:33 AM, 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 > mo

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

2021-01-27 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