Re: [PATCH -next] mm/memcontrol.c: make cgroup_memory_noswap static
From: Johannes Weiner
Date: Thu Apr 21 2022 - 10:22:15 EST
On Thu, Apr 21, 2022 at 08:47:36PM +0800, Lu Jialin wrote:
> cgroup_memory_noswap is only used in mm/memcontrol.c, therefore just make
> it static, and remove export in include/linux/memcontrol.h
>
> Signed-off-by: Lu Jialin <lujialin4@xxxxxxxxxx>
Nice. Unused since 2d1c498072de ("mm: memcontrol: make swap tracking
an integral part of memory control"), which removed the two instances
from mm/swap_cgroup.c.
Acked-by: Johannes Weiner <hannes@xxxxxxxxxxx>