mm/damon/reclaim: use damon_select_ops() instead of damon_{v,p}a_set_operations()
authorSeongJae Park <sj@kernel.org>
Wed, 16 Feb 2022 04:31:42 +0000 (15:31 +1100)
committerStephen Rothwell <sfr@canb.auug.org.au>
Thu, 17 Feb 2022 03:46:48 +0000 (14:46 +1100)
commit1358e309cb1d895e54241580e0df743348aa138b
treecfd12d9d3cf0b9595085b5e130e25ccbcd159a2f
parent7cf2dd7a5509b8961d0084b0c553666a4195da64
mm/damon/reclaim: use damon_select_ops() instead of damon_{v,p}a_set_operations()

This commit makes DAMON_RECLAIM to select the registered monitoring
operations for the physical address space instead of setting it on its
own.  This allows DAMON_RECLAIM be independent of DAMON_PADDR, but leave
the dependency as is, because it's the only one monitoring operations it
use, and therefore it makes no sense to build DAMON_RECLAIM without
DAMON_PADDR.

Link: https://lkml.kernel.org/r/20220215184603.1479-5-sj@kernel.org
Signed-off-by: SeongJae Park <sj@kernel.org>
Cc: David Rientjes <rientjes@google.com>
Cc: Xin Hao <xhao@linux.alibaba.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Stephen Rothwell <sfr@canb.auug.org.au>
mm/damon/reclaim.c