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

Re: [PATCH v5 3/6] mm/vmscan: move struct scan_control to a dedicated header

flat view

From: Muchun Song <muchun.song@linux.dev>
Date: 2026-10-31 09:30:41
Also in: bpf, cgroups, linux-mm, lkml

On Oct 31, 2026, at 17:00, Ridong Chen [off-list ref] wrote:

From: Ridong Chen <redacted>

The definition of struct scan_control has lived inline at the top of
mm/vmscan.c. Move it out to a new mm/vmscan.h so the reclaim-internal
state can be referenced from other reclaim translation units without
duplicating the definition.

The header uses an ordinary include guard and pulls in only what the
struct needs (nodemask_t, gfp_t and struct reclaim_state).

mm/trace_vmscan.h includes the new header directly so that any
translation unit pulling in the trace events (mm/vmscan.c, mm/shrinker.c)
sees the full definition of struct scan_control regardless of include
order.

No functional change.

Signed-off-by: Ridong Chen <redacted>
Acked-by: Muchun Song <muchun.song@linux.dev>

Thanks
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help