[patch 6/8] memcg: get_mem_cgroup_from_mm()

2014-03-11 Thread Johannes Weiner
Instead of returning NULL from try_get_mem_cgroup_from_mm() when the mm owner is exiting, just return root_mem_cgroup. This makes sense for all callsites and gets rid of some of them having to fallback manually. Signed-off-by: Johannes Weiner Acked-by: Michal Hocko --- mm/memcontrol.c | 18

[patch 6/8] memcg: get_mem_cgroup_from_mm()

2014-03-11 Thread Johannes Weiner
Instead of returning NULL from try_get_mem_cgroup_from_mm() when the mm owner is exiting, just return root_mem_cgroup. This makes sense for all callsites and gets rid of some of them having to fallback manually. Signed-off-by: Johannes Weiner han...@cmpxchg.org Acked-by: Michal Hocko

Re: [patch 6/8] memcg: get_mem_cgroup_from_mm()

2014-02-10 Thread Michal Hocko
On Fri 07-02-14 12:04:23, Johannes Weiner wrote: > Instead of returning NULL from try_get_mem_cgroup_from_mm() when the > mm owner is exiting, just return root_mem_cgroup. This makes sense > for all callsites and gets rid of some of them having to fallback > manually. It makes sense now that css

Re: [patch 6/8] memcg: get_mem_cgroup_from_mm()

2014-02-10 Thread Michal Hocko
On Fri 07-02-14 12:04:23, Johannes Weiner wrote: Instead of returning NULL from try_get_mem_cgroup_from_mm() when the mm owner is exiting, just return root_mem_cgroup. This makes sense for all callsites and gets rid of some of them having to fallback manually. It makes sense now that css

[patch 6/8] memcg: get_mem_cgroup_from_mm()

2014-02-07 Thread Johannes Weiner
Instead of returning NULL from try_get_mem_cgroup_from_mm() when the mm owner is exiting, just return root_mem_cgroup. This makes sense for all callsites and gets rid of some of them having to fallback manually. Signed-off-by: Johannes Weiner --- mm/memcontrol.c | 18 -- 1 file

[patch 6/8] memcg: get_mem_cgroup_from_mm()

2014-02-07 Thread Johannes Weiner
Instead of returning NULL from try_get_mem_cgroup_from_mm() when the mm owner is exiting, just return root_mem_cgroup. This makes sense for all callsites and gets rid of some of them having to fallback manually. Signed-off-by: Johannes Weiner han...@cmpxchg.org --- mm/memcontrol.c | 18