Re: [PATCH 2/7] mm/damon/tests/core-kunit: add a test for damon_is_last_region()

From: wang lian

Date: Sun Mar 08 2026 - 22:36:08 EST


> There was a bug [1] in damon_is_last_region(). Add a kunit test to not
> reintroduce the bug.

> [1] https://lore.kernel.org/20260114152049.99727-1-sj@xxxxxxxxxx/

> Signed-off-by: SeongJae Park <sj@xxxxxxxxxx>

Hi SeongJae,

I've been following the previous discussion regarding the bug in
damon_is_last_region() where the arguments of list_is_last() were
accidentally swapped.

I have verified this patch by running the KUnit tests on my arm64 native
environment. The damon_test_is_last_region test case passed as expected,
confirming that the fix is robust and the regression is effectively
prevented.

Tested-by: wang lian <lianux.mm@xxxxxxxxx>
Reviewed-by: wang lian <lianux.mm@xxxxxxxxx>
--
Best Regards,
wang lian