Re: [PATCH 2/2] mm: Extract memcg maxable seq_file logic to seq_show_memcg_tunable

2019-01-24 Thread Michal Hocko
On Thu 24-01-19 14:41:00, Chris Down wrote: > memcg has a significant number of files exposed to kernfs where their > value is either exposed directly or is "max" in the case of > PAGE_COUNTER_MAX. > > This patch makes this generic by providing a single function to do this > work. In combination w

Re: [PATCH 2/2] mm: Extract memcg maxable seq_file logic to seq_show_memcg_tunable

2019-01-24 Thread Johannes Weiner
On Thu, Jan 24, 2019 at 02:41:00PM -0500, Chris Down wrote: > memcg has a significant number of files exposed to kernfs where their > value is either exposed directly or is "max" in the case of > PAGE_COUNTER_MAX. > > This patch makes this generic by providing a single function to do this > work.

[PATCH 2/2] mm: Extract memcg maxable seq_file logic to seq_show_memcg_tunable

2019-01-24 Thread Chris Down
memcg has a significant number of files exposed to kernfs where their value is either exposed directly or is "max" in the case of PAGE_COUNTER_MAX. This patch makes this generic by providing a single function to do this work. In combination with the previous patch adding mem_cgroup_from_seq, this