mm/damon/sysfs: use DAMON core API damon_is_running()
authorSeongJae Park <sj@kernel.org>
Sat, 5 Jul 2025 17:49:58 +0000 (10:49 -0700)
committerAndrew Morton <akpm@linux-foundation.org>
Sun, 20 Jul 2025 01:59:44 +0000 (18:59 -0700)
commitd2b5be741a5045272b9d711908eab017632ac022
tree61718443b3a8b942252353032d44ffb55342308f
parent775c96714dca287f1130a7028890254d426a2b5d
mm/damon/sysfs: use DAMON core API damon_is_running()

DAMON core implements a static function to see if a given DAMON context is
running.  DAMON sysfs interface is implementing the same one on its own.
Make the core function non-static and reuse it from the DAMON sysfs
interface.

Link: https://lkml.kernel.org/r/20250705175000.56259-5-sj@kernel.org
Signed-off-by: SeongJae Park <sj@kernel.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
include/linux/damon.h
mm/damon/core.c
mm/damon/sysfs.c