]> www.infradead.org Git - users/jedix/linux-maple.git/commit
mm/memcg: set memcg after css verified and got reference
authorWei Yang <richard.weiyang@gmail.com>
Thu, 14 Apr 2022 06:07:04 +0000 (23:07 -0700)
committerakpm <akpm@linux-foundation.org>
Thu, 14 Apr 2022 06:07:04 +0000 (23:07 -0700)
commit5e1ad4c4c6a481bdd8ec1550af155cbcb41b481e
treeb1edf165aa89d8007c9b4ce38782fe6ff9c8ce55
parent97d86217ae8dbee8056f5941e53435788288fd9f
mm/memcg: set memcg after css verified and got reference

Patch series "mm/memcg: some cleanup for mem_cgroup_iter()", v2.

No functional change, try to make it more readable.

This patch (of 3):

Instead of resetting memcg when css is either not verified or not got
reference, we can set it after these process.

No functional change, just simplified the code a little.

Link: https://lkml.kernel.org/r/20220330234719.18340-1-richard.weiyang@gmail.com
Link: https://lkml.kernel.org/r/20220330234719.18340-2-richard.weiyang@gmail.com
Signed-off-by: Wei Yang <richard.weiyang@gmail.com>
Acked-by: Johannes Weiner <hannes@cmpxchg.org>
Reviewed-by: Roman Gushchin <roman.gushchin@linux.dev>
Cc: Michal Hocko <mhocko@suse.com>
Cc: Shakeel Butt <shakeelb@google.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
mm/memcontrol.c