The patch titled Subject: mm: memcg: add reminder comment for the memcg v2 events has been added to the -mm mm-unstable branch. Its filename is mm-memcg-add-reminder-comment-for-the-memcg-v2-events.patch This patch will shortly appear at https://git.kernel.org/pub/scm/linux/kernel/git/akpm/25-new.git/tree/patches/mm-memcg-add-reminder-comment-for-the-memcg-v2-events.patch This patch will later appear in the mm-unstable branch at git://git.kernel.org/pub/scm/linux/kernel/git/akpm/mm Before you just go and hit "reply", please: a) Consider who else should be cc'ed b) Prefer to cc a suitable mailing list as well c) Ideally: find the original patch on the mailing list and do a reply-to-all to that, adding suitable additional cc's *** Remember to use Documentation/process/submit-checklist.rst when testing your code *** The -mm tree is included into linux-next via the mm-everything branch at git://git.kernel.org/pub/scm/linux/kernel/git/akpm/mm and is updated there every 2-3 working days ------------------------------------------------------ From: Dmitry Rokosov <ddrokosov@xxxxxxxxxxxxxxxxx> Subject: mm: memcg: add reminder comment for the memcg v2 events Date: Thu, 23 Nov 2023 10:19:45 +0300 To maintain the correct state, it is important to ensure that events for the memory cgroup v2 are aligned with the sample cgroup codes. Link: https://lkml.kernel.org/r/20231123071945.25811-4-ddrokosov@xxxxxxxxxxxxxxxxx Signed-off-by: Dmitry Rokosov <ddrokosov@xxxxxxxxxxxxxxxxx> Cc: Johannes Weiner <hannes@xxxxxxxxxxx> Cc: Michal Hocko <mhocko@xxxxxxxxxx> Cc: Muchun Song <muchun.song@xxxxxxxxx> Cc: Roman Gushchin <roman.gushchin@xxxxxxxxx> Cc: Shakeel Butt <shakeelb@xxxxxxxxxx> Signed-off-by: Andrew Morton <akpm@xxxxxxxxxxxxxxxxxxxx> --- mm/memcontrol.c | 4 ++++ 1 file changed, 4 insertions(+) --- a/mm/memcontrol.c~mm-memcg-add-reminder-comment-for-the-memcg-v2-events +++ a/mm/memcontrol.c @@ -6783,6 +6783,10 @@ static ssize_t memory_max_write(struct k return nbytes; } +/* + * Note: don't forget to update the 'samples/cgroup/memcg_event_listener' + * if any new events become available. + */ static void __memory_events_show(struct seq_file *m, atomic_long_t *events) { seq_printf(m, "low %lu\n", atomic_long_read(&events[MEMCG_LOW])); _ Patches currently in -mm which might be from ddrokosov@xxxxxxxxxxxxxxxxx are mm-memcg-print-out-cgroup-ino-in-the-memcg-tracepoints.patch mm-memcg-introduce-new-event-to-trace-shrink_memcg.patch samples-introduce-new-samples-subdir-for-cgroup.patch samples-cgroup-introduce-memcg-memoryevents-listener.patch mm-memcg-add-reminder-comment-for-the-memcg-v2-events.patch