mm: memcontrol: use mem_cgroup_is_root() helper
authorKamalesh Babulal <kamalesh.babulal@oracle.com>
Fri, 30 Sep 2022 13:44:33 +0000 (19:14 +0530)
committerAndrew Morton <akpm@linux-foundation.org>
Wed, 9 Nov 2022 01:37:13 +0000 (17:37 -0800)
commit7848ed6284ec4791eba22026e28edb2062790a3d
treea1e6abdd92107d59aaf93879ca30d5de72117ac4
parent97955f6941f0e7dea64dea22711382daf1db2f76
mm: memcontrol: use mem_cgroup_is_root() helper

Replace the checks for memcg is root memcg, with mem_cgroup_is_root()
helper.

Link: https://lkml.kernel.org/r/20220930134433.338103-1-kamalesh.babulal@oracle.com
Signed-off-by: Kamalesh Babulal <kamalesh.babulal@oracle.com>
Reviewed-by: Muchun Song <songmuchun@bytedance.com>
Acked-by: Michal Hocko <mhocko@suse.com>
Cc: Johannes Weiner <hannes@cmpxchg.org>
Cc: Kamalesh Babulal <kamalesh.babulal@oracle.com>
Cc: Roman Gushchin <roman.gushchin@linux.dev>
Cc: Shakeel Butt <shakeelb@google.com>
Cc: Tom Hromatka <tom.hromatka@oracle.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
mm/memcontrol.c