diff options
author | Johannes Weiner <hannes@cmpxchg.org> | 2014-04-08 00:37:43 +0200 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2014-04-08 01:35:56 +0200 |
commit | df381975463996178d685f6ef7d3555c5f887201 (patch) | |
tree | 22fd4f923fc2cc1ed1d7c4aa94039452ce6123e5 /mm/hugetlb_cgroup.c | |
parent | memcg: remove unnecessary !mm check from try_get_mem_cgroup_from_mm() (diff) | |
download | linux-df381975463996178d685f6ef7d3555c5f887201.tar.xz linux-df381975463996178d685f6ef7d3555c5f887201.zip |
memcg: get_mem_cgroup_from_mm()
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.
[fengguang.wu@intel.com: fix warnings]
Signed-off-by: Johannes Weiner <hannes@cmpxchg.org>
Signed-off-by: Fengguang Wu <fengguang.wu@intel.com>
Acked-by: Michal Hocko <mhocko@suse.cz>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'mm/hugetlb_cgroup.c')
0 files changed, 0 insertions, 0 deletions