mm/damon/dbgfs: use operations id for knowing if the target has pid
authorSeongJae Park <sj@kernel.org>
Wed, 16 Feb 2022 04:31:43 +0000 (15:31 +1100)
committerStephen Rothwell <sfr@canb.auug.org.au>
Thu, 17 Feb 2022 03:46:48 +0000 (14:46 +1100)
commit0fd55d4b6605b3ae0771db3d197d023770ea4ee5
tree0c08cbd001bbcb5c018615d4f7f7e8bd7c6a1fab
parent1a4bc89b2e6fad34d299e42b7b4399069668bbfc
mm/damon/dbgfs: use operations id for knowing if the target has pid

DAMON debugfs interface depends on monitoring operations for virtual
address spaces because it knows if the target has pid or not by seeing if
the context is configured to use one of the virtual address space
monitoring operation functions.  We can replace that check with 'enum
damon_ops_id' now, to make it independent.  This commit makes the change.

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