Re: [PATCH 14/18] mm: memcontrol: prepare swap controller setup for integration

From: Joonsoo Kim
Date: Thu Apr 23 2020 - 20:30:40 EST


On Mon, Apr 20, 2020 at 06:11:22PM -0400, Johannes Weiner wrote:
> A few cleanups to streamline the swap controller setup:
>
> - Replace the do_swap_account flag with cgroup_memory_noswap. This
> brings it in line with other functionality that is usually available
> unless explicitly opted out of - nosocket, nokmem.
>
> - Remove the really_do_swap_account flag that stores the boot option
> and is later used to switch the do_swap_account. It's not clear why
> this indirection is/was necessary. Use do_swap_account directly.
>
> - Minor coding style polishing
>
> Signed-off-by: Johannes Weiner <hannes@xxxxxxxxxxx>

Reviewed-by: Joonsoo Kim <iamjoonsoo.kim@xxxxxxx>