]> git.baikalelectronics.ru Git - kernel.git/commit
memcg: cleanup root memcg checks
authorShakeel Butt <shakeelb@google.com>
Fri, 30 Apr 2021 05:56:05 +0000 (22:56 -0700)
committerLinus Torvalds <torvalds@linux-foundation.org>
Fri, 30 Apr 2021 18:20:37 +0000 (11:20 -0700)
commitddd6993a11073e2f43a34b4136b7abd43b3610ce
tree5f4d63fd1e04e51517989fb445615f6ac9e834d6
parent69c0791b5f5a7ab60be96f9c9a40ef7e1b08b606
memcg: cleanup root memcg checks

Replace the implicit checking of root memcg with explicit root memcg
checking i.e.  !css->parent with mem_cgroup_is_root().

Link: https://lkml.kernel.org/r/20210223205625.2792891-1-shakeelb@google.com
Signed-off-by: Shakeel Butt <shakeelb@google.com>
Acked-by: Michal Hocko <mhocko@suse.com>
Acked-by: Johannes Weiner <hannes@cmpxchg.org>
Cc: Roman Gushchin <guro@fb.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
mm/memcontrol.c