]> git.baikalelectronics.ru Git - kernel.git/commit
mm/damon/dbgfs: use damon_select_ops() instead of damon_{v,p}a_set_operations()
authorSeongJae Park <sj@kernel.org>
Tue, 22 Mar 2022 21:48:58 +0000 (14:48 -0700)
committerLinus Torvalds <torvalds@linux-foundation.org>
Tue, 22 Mar 2022 22:57:12 +0000 (15:57 -0700)
commit79b5172d2dee95a1348abbf41d11635a1fb34615
tree943721ae4c3ac530fcf03360361933fa7269fbab
parentc906022485feca5df479cbe893f70758c083df94
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: Linus Torvalds <torvalds@linux-foundation.org>
mm/damon/dbgfs.c