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

Joonsoo Kim
2020-04-24T00:30:40Z

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

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