]> www.infradead.org Git - users/jedix/linux-maple.git/commit
memcg: bypass root memcg check for skmem charging
authorShakeel Butt <shakeel.butt@linux.dev>
Fri, 28 Feb 2025 02:23:54 +0000 (18:23 -0800)
committerAndrew Morton <akpm@linux-foundation.org>
Tue, 4 Mar 2025 05:50:51 +0000 (21:50 -0800)
commite1540212e0c703065778f00fe33de06f604bf7a8
treeeab2f36eabf58e25e94ada09bdca162b908b5d17
parentd1902fc41a7d2ea3b97ff203f02e93d16b3baa18
memcg: bypass root memcg check for skmem charging

The root memcg is never associated with a socket in mem_cgroup_sk_alloc,
so there is no need to check if the given memcg is root for the skmem
charging code path.

Link: https://lkml.kernel.org/r/20250228022354.2624249-1-shakeel.butt@linux.dev
Signed-off-by: Shakeel Butt <shakeel.butt@linux.dev>
Cc: Johannes Weiner <hannes@cmpxchg.org>
Cc: Michal Hocko <mhocko@kernel.org>
Cc: Muchun Song <muchun.song@linux.dev>
Cc: Roman Gushchin (Cruise) <roman.gushchin@linux.dev>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
mm/memcontrol.c