Re: [PATCH 2/3] mm/damon/tests/core-kunit: test DAMOS_FILTER_TYPE_AGE_MS in damos_filter_for_ops()
From: SJ Park
Date: Fri Nov 13 2026 - 21:04:11 EST
On Fri, 13 Nov 2026 07:58:56 -0800 Jason Angelov <jasonangelov@xxxxxxxx> wrote:
> DAMOS_FILTER_TYPE_AGE_MS is core filter, not ops filter.
> add kunit test covering this rejection.
s/add/Add/ ?
>
> Signed-off-by: Jason Angelov <jasonangelov@xxxxxxxx>
> ---
> mm/damon/tests/core-kunit.h | 6 ++++++
> 1 file changed, 6 insertions(+)
>
> diff --git a/mm/damon/tests/core-kunit.h b/mm/damon/tests/core-kunit.h
> index 0eb5dcdba0ae..fb84d30a712d 100644
> --- a/mm/damon/tests/core-kunit.h
> +++ b/mm/damon/tests/core-kunit.h
> @@ -1832,6 +1832,11 @@ static void damon_test_valid_probe_params(struct kunit *test)
> damon_destroy_ctx(ctx);
> }
>
> +static void damos_test_age_ms_filter_is_core(struct kunit *test)
> +{
> + KUNIT_EXPECT_FALSE(test, damos_filter_for_ops(DAMOS_FILTER_TYPE_AGE_MS));
Let's wrap the line for the 80 columns per line rule.
Other than above two trivial things,
Reviewed-by: SJ Park <sj@xxxxxxxxxx>
Thanks,
SJ
[...]