On Sat, Mar 15, 2025 at 10:49:24AM -0700, Shakeel Butt wrote: > At multiple places in memcontrol.c, the memory and memsw page counters > are being uncharged. This is error-prone. Let's move the functionality > to a newly introduced memcg_uncharge and call it from all those places. > > Signed-off-by: Shakeel Butt <shakeel.butt@xxxxxxxxx> > Acked-by: Vlastimil Babka <vbabka@xxxxxxx> This is a nice one! Reviewed-by: Roman Gushchin <roman.gushchin@xxxxxxxxx>