]> www.infradead.org Git - users/jedix/linux-maple.git/commit
memcg: rename do_flush_stats and add force flag
authorJP Kobryn <inwardvessel@gmail.com>
Tue, 29 Oct 2024 02:11:05 +0000 (19:11 -0700)
committerAndrew Morton <akpm@linux-foundation.org>
Fri, 1 Nov 2024 04:29:33 +0000 (21:29 -0700)
commitbba2f822febd95203e20a3f00c1d7eaca0b3aae0
tree7050c034d5ceefb105e35ef4bb386b4d4ac78a6c
parent2ef247cb6b87b7d4b37a01cc8c891b2c9e48638c
memcg: rename do_flush_stats and add force flag

Patch series "memcg: tracepoint for flushing stats", v3.

This series adds new capability for understanding frequency and circumstances
behind flushing memcg stats.

This patch (of 2):

Change the name to something more consistent with others in the file and
use double unders to signify it is associated with the
mem_cgroup_flush_stats() API call.  Additionally include a new flag that
call sites use to indicate a forced flush; skipping checks and flushing
unconditionally.  There are no changes in functionality.

Link: https://lkml.kernel.org/r/20241029021106.25587-1-inwardvessel@gmail.com
Link: https://lkml.kernel.org/r/20241029021106.25587-2-inwardvessel@gmail.com
Signed-off-by: JP Kobryn <inwardvessel@gmail.com>
Reviewed-by: Yosry Ahmed <yosryahmed@google.com>
Acked-by: Shakeel Butt <shakeel.butt@linux.dev>
Cc: Johannes Weiner <hannes@cmpxchg.org>
Cc: Steven Rostedt (Google) <rostedt@goodmis.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
mm/memcontrol.c