summaryrefslogtreecommitdiffstats
path: root/lib/test_free_pages.c
diff options
context:
space:
mode:
authorXiang Yang <xiangyang3@huawei.com>2022-06-25 14:18:44 +0800
committerakpm <akpm@linux-foundation.org>2022-07-17 17:14:36 -0700
commit9c94bef9c91288cc51e861a7acaa52ebb48c0121 (patch)
tree70fe7928c50ad0469706851bab539e4ce3bb5e4f /lib/test_free_pages.c
parent01b44456a7aa7c3b24fa9db7d1714b208b8ef3d8 (diff)
downloadlinux-9c94bef9c91288cc51e861a7acaa52ebb48c0121.tar.gz
linux-9c94bef9c91288cc51e861a7acaa52ebb48c0121.tar.bz2
linux-9c94bef9c91288cc51e861a7acaa52ebb48c0121.zip
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>
Diffstat (limited to 'lib/test_free_pages.c')
0 files changed, 0 insertions, 0 deletions