Re: [PATCH] mm: memcg-v1: account vmpressure event allocations

From: Johannes Weiner

Date: Mon Jul 13 2026 - 07:43:25 EST


On Mon, Jul 13, 2026 at 04:55:20PM +0800, Guopeng Zhang wrote:
> From: Guopeng Zhang <zhangguopeng@xxxxxxxxxx>
>
> Commit 72797d218b43 ("mm/memcg: v1: account event registrations and drop
> world-writable cgroup.event_control") accounted cgroup v1 event
> registration allocations with GFP_KERNEL_ACCOUNT, but missed struct
> vmpressure_event.
>
> Use GFP_KERNEL_ACCOUNT for this allocation as well.
>
> Fixes: 72797d218b43 ("mm/memcg: v1: account event registrations and drop world-writable cgroup.event_control")
> Signed-off-by: Guopeng Zhang <zhangguopeng@xxxxxxxxxx>

I guess :)

Acked-by: Johannes Weiner <hannes@xxxxxxxxxxx>