Re: [PATCH 1/2] mm: Create mem_cgroup_from_seq

2019-01-24 Thread Michal Hocko
On Thu 24-01-19 14:40:50, Chris Down wrote: > This is the start of a series of patches similar to my earlier > DEFINE_MEMCG_MAX_OR_VAL work, but with less Macro Magic(tm). > > There are a bunch of places we go from seq_file to mem_cgroup, which > currently requires manually getting the css, then

Re: [PATCH 1/2] mm: Create mem_cgroup_from_seq

2019-01-24 Thread Johannes Weiner
On Thu, Jan 24, 2019 at 02:40:50PM -0500, Chris Down wrote: > This is the start of a series of patches similar to my earlier > DEFINE_MEMCG_MAX_OR_VAL work, but with less Macro Magic(tm). > > There are a bunch of places we go from seq_file to mem_cgroup, which > currently requires manually

[PATCH 1/2] mm: Create mem_cgroup_from_seq

2019-01-24 Thread Chris Down
This is the start of a series of patches similar to my earlier DEFINE_MEMCG_MAX_OR_VAL work, but with less Macro Magic(tm). There are a bunch of places we go from seq_file to mem_cgroup, which currently requires manually getting the css, then getting the mem_cgroup from the css. It's in enough