mm/damon/dbgfs-test: fix is_target_id() change
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)
commit5904b385cbb29e0f00f87d0ef054da9f59be38b1
tree2b247ea705da2a26e9180a919a48704d7d7d6399
parent0fd55d4b6605b3ae0771db3d197d023770ea4ee5
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