Re: [PATCH 1/2] mm: move lruvec stats update functions to vmstat.h

From: Johannes Weiner
Date: Mon Nov 30 2020 - 15:12:06 EST


On Wed, Nov 25, 2020 at 04:56:02PM -0800, Shakeel Butt wrote:
> This patch does not change any functionality and only move the functions
> which update the lruvec stats to vmstat.h from memcontrol.h. The main
> reason for this patch is to be able to use these functions in the page
> table contructor function which is defined in mm.h and we can not
> include the memcontrol.h in that file.
>
> Signed-off-by: Shakeel Butt <shakeelb@xxxxxxxxxx>

This is a better place for this interface in general. The lruvec
abstraction, while invented for memcg, isn't specific to memcg at all.

Acked-by: Johannes Weiner <hannes@xxxxxxxxxxx>