[RFC PATCH v1.1 00/10] mm/damon: cleanup code, add test cases, and update guidances in docs

From: SJ Park

Date: Tue Jul 28 2026 - 23:43:53 EST


Misc cleanup, improvements and updates of code, test, and documents.

Patches 1-3 cleanup DAMON code. Patches 4-8 adds kunit and selftest
test cases for recently fixed bugs and a new feature. Patches 9 and 10
update guidelines for AI review and what document to read, on DAMON
documents.

Changes from RFC
- RFC: https://lore.kernel.org/20260728052811.192712-1-sj@xxxxxxxxxx
- Remove ctx parameter of __damon_va_init_regions().
- Fix damon_nr_samples_per_aggr() overflow kunit test.
- Rebase to the latest mm-new.

SJ Park (10):
mm/damon/core: use damon_nr_samples_per_aggr() for max merge threshold
mm/damon/core: remove debug messages
mm/damon/vaddr: remove a debug message
mm/damon/tests/core-kunit: extend set_regions() test for error case
mm/damon/tests/core-kunit: test <=0 size damon_set_regions() inputs
mm/damon/tests/core-kunit: test overlapping ranges for set_regions()
mm/damon/tests/core-kunit: test damon_nr_samples_per_aggr()
selftests/damon/sysfs.sh: test hugepage_mem_bp quota goal
Docs/mm/damon/maintainer-profile: update AI review for Sashiko replies
Docs/ABI/damon: recommend subsystem doc instead of admin-guide

.../ABI/testing/sysfs-kernel-mm-damon | 2 +-
Documentation/mm/damon/maintainer-profile.rst | 19 ++----
mm/damon/core.c | 12 +---
mm/damon/tests/core-kunit.h | 65 ++++++++++++++++---
mm/damon/vaddr.c | 16 +----
tools/testing/selftests/damon/sysfs.sh | 1 +
6 files changed, 68 insertions(+), 47 deletions(-)


base-commit: bc87db7fa4d8d45745620150a9487efcb6ebbd51
--
2.47.3