Re: [PATCH 3/6] mm: memcontrol: replace node summing with memcg_page_state()

2019-03-21 Thread Andrew Morton
On Thu, 28 Feb 2019 11:30:17 -0500 Johannes Weiner wrote: > Instead of adding up the node counters, use memcg_page_state() to get > the memcg state directly. This is a bit cheaper and more stream-lined. > > ... > > --- a/mm/memcontrol.c > +++ b/mm/memcontrol.c > @@ -746,10 +746,13 @@ static

[PATCH 3/6] mm: memcontrol: replace node summing with memcg_page_state()

2019-02-28 Thread Johannes Weiner
Instead of adding up the node counters, use memcg_page_state() to get the memcg state directly. This is a bit cheaper and more stream-lined. Signed-off-by: Johannes Weiner --- mm/memcontrol.c | 9 ++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/mm/memcontrol.c

[PATCH 3/6] mm: memcontrol: replace node summing with memcg_page_state()

2019-02-15 Thread Johannes Weiner
Instead of adding up the node counters, use memcg_page_state() to get the memcg state directly. This is a bit cheaper and more stream-lined. Signed-off-by: Johannes Weiner --- mm/memcontrol.c | 9 ++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/mm/memcontrol.c