mm/damon/dbgfs: 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)
commit1a4bc89b2e6fad34d299e42b7b4399069668bbfc
tree4b75a6bb118e036915ec20fbe8c1b63489827f34
parent1358e309cb1d895e54241580e0df743348aa138b
mm/damon/dbgfs: use damon_select_ops() instead of damon_{v,p}a_set_operations()

This commit makes DAMON debugfs interface to select the registered
monitoring operations for the physical address space or virtual address
spaces depending on user requests instead of setting it on its own.  Note
that DAMON debugfs interface is still dependent to DAMON_VADDR with this
change, because it is also using its symbol, 'damon_va_target_valid'.

Link: https://lkml.kernel.org/r/20220215184603.1479-6-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/dbgfs.c