]> git.baikalelectronics.ru Git - kernel.git/commit
mm/memcontrol.c: replace cgroup_memory_nokmem with mem_cgroup_kmem_disabled()
authorXiang Yang <xiangyang3@huawei.com>
Sat, 25 Jun 2022 06:18:44 +0000 (14:18 +0800)
committerakpm <akpm@linux-foundation.org>
Mon, 18 Jul 2022 00:14:36 +0000 (17:14 -0700)
commit35098802f63e95929997fdf31781d5bcf13af016
tree70fe7928c50ad0469706851bab539e4ce3bb5e4f
parentb08a34e2360490d4ce0da01075dd5377f4fa3931
mm/memcontrol.c: replace cgroup_memory_nokmem with mem_cgroup_kmem_disabled()

mem_cgroup_kmem_disabled() checks whether the kmem accounting is off.
Therefore, replace cgroup_memory_nokmem with mem_cgroup_kmem_disabled(),
which is the same work in percpu.c and slab_common.c.

Link: https://lkml.kernel.org/r/20220625061844.226764-1-xiangyang3@huawei.com
Signed-off-by: Xiang Yang <xiangyang3@huawei.com>
Reviewed-by: Muchun Song <songmuchun@bytedance.com>
Acked-by: Roman Gushchin <roman.gushchin@linux.dev>
Acked-by: Souptick Joarder (HPE) <jrdr.linux@gmail.com>
Cc: Johannes Weiner <hannes@cmpxchg.org>
Cc: Michal Hocko <mhocko@kernel.org>
Cc: Shakeel Butt <shakeelb@google.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
mm/memcontrol.c