[PATCH 0/7] mm/damon: misc cleanups

From: SJ Park

Date: Mon Aug 31 2026 - 16:45:07 EST


Cleanup the code, tests and samples for clarifications and readability.

The patches are individually sent by the authors. I'm reposting those
as one series for convenience of handling. For this reason, changelog
is on each patch's commentary section.

Enze Li (1):
samples/damon/mtier: add comment for struct region_range

Hari Mishal (1):
selftests/damon/sysfs.py: clean up sh processes used for
obsolete_target test

Jaeyeon Lee (1):
mm/damon/tests: use scoped_guard() for damon_test_ops_registration

Li Youhong (1):
mm/damon/ops-common: factor out damon_putback_folio_list()

SJ Park (1):
mm/damon/core: introduce damon_set_target_pid()

Zenghui Yu (Huawei) (1):
mm/damon/core: remove declaration of __damon_commit_ctx()

zhaozhengzhuo (1):
selftests/damon: prevent remaining cross-object state pollution

include/linux/damon.h | 1 +
mm/damon/core.c | 14 ++++++-
mm/damon/ops-common.c | 30 +++++++--------
mm/damon/sysfs.c | 6 +--
mm/damon/tests/core-kunit.h | 21 +++++-----
samples/damon/mtier.c | 5 +++
samples/damon/prcl.c | 5 +--
samples/damon/wsse.c | 5 +--
tools/testing/selftests/damon/_damon_sysfs.py | 38 ++++++++++++++-----
tools/testing/selftests/damon/sysfs.py | 4 ++
10 files changed, 79 insertions(+), 50 deletions(-)


base-commit: 58132fed7967e3401e3f293a0a2cc983161e229e
--
2.47.3