mm/damon/vaddr: put pid in cleanup_target()
authorSeongJae Park <sj@kernel.org>
Sat, 12 Jul 2025 19:50:12 +0000 (12:50 -0700)
committerAndrew Morton <akpm@linux-foundation.org>
Sun, 20 Jul 2025 01:59:56 +0000 (18:59 -0700)
commitff01aba6e45833395a3739fa7e8bd42251be0254
treec22065240424fc216237177caf965b7a297e8867
parent7114bc5e01cf393e1fdc97e10399eb9451b6af45
mm/damon/vaddr: put pid in cleanup_target()

Implement cleanup_target() callback for [f]vaddr, which calls put_pid()
for each target that will be destroyed.  Also remove redundant put_pid()
calls in core, sysfs and sample modules, which were required to be done
redundantly due to the lack of such self cleanup in vaddr.

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