[prev in list] [next in list] [prev in thread] [next in thread] 

List:       linux-mm
Subject:    Re: [PATCH 1/2] mm: move lruvec stats update functions to vmstat.h
From:       Johannes Weiner <hannes () cmpxchg ! org>
Date:       2020-11-30 20:09:22
Message-ID: 20201130200922.GA23216 () cmpxchg ! org
[Download RAW message or body]

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@google.com>

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@cmpxchg.org>

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic