Thread (13 messages) 13 messages, 4 authors, 18h ago

[PATCH v5 1/6] mm/memcontrol: drop unused vmscan tracepoint include

flat view
HOTtoday REVIEWED: 2 (2M)

From: Ridong Chen <ridong.chen@linux.dev>
Date: 2026-10-31 09:01:08
Also in: bpf, cgroups, linux-mm, lkml
Subsystem: control group - memory resource controller (memcg), memory management, the rest · Maintainers: Johannes Weiner, Michal Hocko, Roman Gushchin, Shakeel Butt, Andrew Morton, Linus Torvalds

Status: Reviewed.

2 review trailers (1 from subsystem maintainers).

From: Ridong Chen <redacted>

memcontrol.c includes <trace/events/vmscan.h> but does not use any of
the tracepoints or macros it defines: all tracepoints invoked here come
from memcg.h and writeback.h.

Drop it ahead of moving the vmscan trace header under mm/, after which
<trace/events/vmscan.h> will no longer exist.

No functional change.

Acked-by: Muchun Song <muchun.song@linux.dev>
Signed-off-by: Ridong Chen <redacted>
Reviewed-by: Barry Song <baohua@kernel.org>
---
 mm/memcontrol.c | 2 --
 1 file changed, 2 deletions(-)
diff --git a/mm/memcontrol.c b/mm/memcontrol.c
index 84f4a8fd4d16..8a35f5b635e0 100644
--- a/mm/memcontrol.c
+++ b/mm/memcontrol.c
@@ -77,8 +77,6 @@
 #include <trace/events/memcg.h>
 #undef CREATE_TRACE_POINTS
 
-#include <trace/events/vmscan.h>
-
 struct cgroup_subsys memory_cgrp_subsys __read_mostly;
 EXPORT_SYMBOL(memory_cgrp_subsys);
 
-- 
2.43.0
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help