mm/damon/dbgfs: use operations id for knowing if the target has pid
authorSeongJae Park <sj@kernel.org>
Mon, 28 Feb 2022 23:01:53 +0000 (10:01 +1100)
committerStephen Rothwell <sfr@canb.auug.org.au>
Mon, 28 Feb 2022 23:01:53 +0000 (10:01 +1100)
commitf273070170c36545a769d75b9a78a20d03faf20c
treefa155b2f333f6689c441f25f7a2840f87140f187
parent8a539a7c25a58e1b5e24424de8a730b63dcc96ed
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