mm/damon/dbgfs-test: fix is_target_id() change
authorSeongJae Park <sj@kernel.org>
Mon, 28 Feb 2022 23:01:54 +0000 (10:01 +1100)
committerStephen Rothwell <sfr@canb.auug.org.au>
Mon, 28 Feb 2022 23:01:54 +0000 (10:01 +1100)
commitb2b2cbf137aa075feb43f9d5cd4fa919595cba8c
tree517d9f5bc89eb9d0e454766c13e1a6ab4d9e01a6
parentf273070170c36545a769d75b9a78a20d03faf20c
mm/damon/dbgfs-test: fix is_target_id() change

DAMON kunit tests for DAMON debugfs interface fails because it still
assumes setting empty monitoring operations makes DAMON debugfs interface
believe the target of the context don't have pid.  This commit fixes the
kunit test fails by explicitly setting the context's monitoring operations
with the operations for the physical address space, which let debugfs
knows the target will not have pid.

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