path: root/mm/memcontrol.c
diff options
authorMuchun Song <>2020-12-14 19:07:04 -0800
committerLinus Torvalds <>2020-12-15 12:13:40 -0800
commitda3ceeff923e3bc750a8423c840462760c463926 (patch)
treeae8f3429e17265e2a47cb5cd03f83a6ce15a37de /mm/memcontrol.c
parentfe6960cb387ff644ec9a1d19e7179e1a29df885e (diff)
mm: memcg/slab: rename *_lruvec_slab_state to *_lruvec_kmem_state
The *_lruvec_slab_state is also suitable for pages allocated from buddy, not just for the slab objects. But the function name seems to tell us that only slab object is applicable. So we can rename the keyword of slab to kmem. Link: Signed-off-by: Muchun Song <> Acked-by: Roman Gushchin <> Reviewed-by: Shakeel Butt <> Acked-by: Johannes Weiner <> Signed-off-by: Andrew Morton <> Signed-off-by: Linus Torvalds <>
Diffstat (limited to 'mm/memcontrol.c')
1 files changed, 1 insertions, 1 deletions
diff --git a/mm/memcontrol.c b/mm/memcontrol.c
index ce19e8484c89..b50f7f336b16 100644
--- a/mm/memcontrol.c
+++ b/mm/memcontrol.c
@@ -853,7 +853,7 @@ void __mod_lruvec_state(struct lruvec *lruvec, enum node_stat_item idx,
__mod_memcg_lruvec_state(lruvec, idx, val);
-void __mod_lruvec_slab_state(void *p, enum node_stat_item idx, int val)
+void __mod_lruvec_kmem_state(void *p, enum node_stat_item idx, int val)
pg_data_t *pgdat = page_pgdat(virt_to_page(p));
struct mem_cgroup *memcg;