[PATCH 0/2] mm/damon: test and document power-of-2 min_region_sz requirement

From: SeongJae Park

Date: Sat Mar 07 2026 - 14:42:42 EST


Since commit c80f46ac228b ("mm/damon/core: disallow non-power of two
min_region_sz"), min_region_sz is always restricted to be a power of
two. Add a kunit test to confirm the functionality. Also, the change
adds a restriction to addr_unit parameter. Clarify it on the document.

SeongJae Park (2):
mm/damon/tests/core-kunit: add a test for damon_commit_ctx()
Docs/mm/damon/design: document the power-of-two limitation for
addr_unit

Documentation/mm/damon/design.rst | 2 ++
mm/damon/tests/core-kunit.h | 22 ++++++++++++++++++++++
2 files changed, 24 insertions(+)


base-commit: 4380f0b6370ead5000b8d155b25a86cb59d68c06
--
2.47.3