Re: [PATCH v2] mm/memcontrol:rewrite mem_cgroup_page_lruvec()
From: Roman Gushchin
Date: Mon Nov 09 2020 - 13:00:48 EST
On Sun, Nov 08, 2020 at 10:37:31PM +0800, Hui Su wrote:
> mem_cgroup_page_lruvec() in memcontrol.c and
> mem_cgroup_lruvec() in memcontrol.h is very similar
> except for the param(page and memcg) which also can be
> convert to each other.
>
> So rewrite mem_cgroup_page_lruvec() with mem_cgroup_lruvec().
>
> v1->v2:
> use page_memcg() instead of 'page->mem_cgroup'.
>
> Acked-by: Michal Hocko <mhocko@xxxxxxxx>
> Acked-by: Johannes Weiner <hannes@xxxxxxxxxxx>
> Reviewed-by: Shakeel Butt <shakeelb@xxxxxxxxxx>
> Signed-off-by: Hui Su <sh_def@xxxxxxx>
Acked-by: Roman Gushchin <guro@xxxxxx>
Thanks!