mm/memcg: make memory.reclaim interface generic
authorDavidlohr Bueso <dave@stgolabs.net>
Mon, 23 Jun 2025 18:58:49 +0000 (11:58 -0700)
committerAndrew Morton <akpm@linux-foundation.org>
Sun, 20 Jul 2025 01:59:52 +0000 (18:59 -0700)
commit2b7226af730cc9a8818ff3b39aabcd76861913dd
tree464c124cc406f839677e4d517aaee5996eca43b8
parent7a92f4f591770cf77de2e6550f4a68957483b739
mm/memcg: make memory.reclaim interface generic

This adds a general call for both parsing as well as the common reclaim
semantics.  memcg is still the only user and no change in semantics.

[akpm@linux-foundation.org: fix CONFIG_NUMA=n build]
Link: https://lkml.kernel.org/r/20250623185851.830632-3-dave@stgolabs.net
Signed-off-by: Davidlohr Bueso <dave@stgolabs.net>
Acked-by: Shakeel Butt <shakeel.butt@linux.dev>
Cc: Johannes Weiner <hannes@cmpxchg.org>
Cc: Michal Hocko <mhocko@kernel.org>
Cc: Roman Gushchin <roman.gushchin@linux.dev>
Cc: Yosry Ahmed <yosryahmed@google.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
mm/internal.h
mm/memcontrol.c
mm/vmscan.c