mm/damon/sysfs: remove damon_sysfs_destroy_targets()
authorSeongJae Park <sj@kernel.org>
Sat, 12 Jul 2025 19:50:13 +0000 (12:50 -0700)
committerAndrew Morton <akpm@linux-foundation.org>
Sun, 20 Jul 2025 01:59:56 +0000 (18:59 -0700)
commitf59ae147abb7905cc4656cee5c4c6ae7b53db75a
tree0639ef24cb26573963cec15d1c101fe874792c29
parentff01aba6e45833395a3739fa7e8bd42251be0254
mm/damon/sysfs: remove damon_sysfs_destroy_targets()

The function was introduced for putting pids and deallocating unnecessary
targets.  Hence it is called before damon_destroy_ctx().  Now vaddr puts
pid for each target destruction (cleanup_target()).  damon_destroy_ctx()
deallocates the targets anyway.  So damon_sysfs_destroy_targets() has no
reason to exist.  Remove it.

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