]> git.baikalelectronics.ru Git - kernel.git/commit
mm/damon/core: move damon_set_targets() into dbgfs
authorSeongJae Park <sj@kernel.org>
Tue, 22 Mar 2022 21:48:37 +0000 (14:48 -0700)
committerLinus Torvalds <torvalds@linux-foundation.org>
Tue, 22 Mar 2022 22:57:12 +0000 (15:57 -0700)
commit56c52f661be88c34f7a905a42b9243465045e2e2
treed1cf88d248ba7cc1c88b6e4762e917fb24e0ad4e
parentb002c038fa1fca4a7d2ac2506d52bb7ba1c5e937
mm/damon/core: move damon_set_targets() into dbgfs

damon_set_targets() function is defined in the core for general use cases,
but called from only dbgfs.  Also, because the function is for general use
cases, dbgfs does additional handling of pid type target id case.  To make
the situation simpler, this commit moves the function into dbgfs and makes
it to do the pid type case handling on its own.

Link: https://lkml.kernel.org/r/20211230100723.2238-4-sj@kernel.org
Signed-off-by: SeongJae Park <sj@kernel.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
include/linux/damon.h
mm/damon/core-test.h
mm/damon/core.c
mm/damon/dbgfs-test.h
mm/damon/dbgfs.c