Re: [PATCH RFC 1/2] mm/memcontrol: add page-level charge/uncharge functions

From: Johannes Weiner

Date: Fri Apr 03 2026 - 13:15:15 EST


On Fri, Apr 03, 2026 at 10:08:35AM -0400, Eric Chanudet wrote:
> Expose functions to charge/uncharge memcg with a number of pages instead
> of a folio.
>
> Signed-off-by: Eric Chanudet <echanude@xxxxxxxxxx>

No naked number accounting, please. The reason existing charge paths
require you to pass an object is because there are other memory
attributes we need to track (such as NUMA node location).