mm-damon-tests-core-kunit-add-test-cases-to-damos_test_commit_filter.patch removed from -mm tree
The quilt patch titled
Subject: mm/damon/tests/core-kunit: add test cases to damos_test_commit_filter()
has been removed from the -mm tree. Its filename was
mm-damon-tests-core-kunit-add-test-cases-to-damos_test_commit_filter.patch
This patch was dropped because it was merged into the mm-stable branch of git://git.kernel.org/pub/scm/linux/kernel/git/akpm/mm
------------------------------------------------------
From: SeongJae Park <[email protected]>
Subject: mm/damon/tests/core-kunit: add test cases to damos_test_commit_filter()
Date: Tue, 11 Nov 2025 10:44:03 -0800
damos_test_commit_filter() is covering only a single test case. Extend it to cover multiple combinations of inputs.
---
mm/damon/tests/core-kunit.h | 53 ++++++++++++++++++++++++++++++---- 1 file changed, 47 insertions(+), 6 deletions(-)
mm/damon/tests/core-kunit.h renamed from mm/damon/tests/core-kunit.h~mm-damon-tests-core-kunit-add-test-cases-to-damos_test_commit_filter +47 -6
@@ -528,17 +528,58 @@ static void damos_test_commit_filter_forstatic void damos_test_commit_filter (struct kunit *test) { -struct damos_filter src_filter = { - .type =DAMOS_FILTER_TYPE_ANON , - .matching = true, - .allow = true}; -struct damos_filter dst_filter = { +struct damos_filter dst = { .type =DAMOS_FILTER_TYPE_ACTIVE , .matching = false, .allow = false, }; -damos_test_commit_filter_for (test, &dst_filter, &src_filter); +damos_test_commit_filter_for (test, &dst, + &(struct damos_filter ){ + .type =DAMOS_FILTER_TYPE_ANON , + .matching = true, + .allow = true, + }); +damos_test_commit_filter_for (test, &dst, + &(struct damos_filter ){ + .type =DAMOS_FILTER_TYPE_MEMCG , + .matching = false, + .allow = false, + .memcg_id =123 , + }); +damos_test_commit_filter_for (test, &dst, + &(struct damos_filter ){ + .type =DAMOS_FILTER_TYPE_YOUNG , + .matching = true, + .allow = true, + }); +damos_test_commit_filter_for (test, &dst, + &(struct damos_filter ){ + .type =DAMOS_FILTER_TYPE_HUGEPAGE_SIZE , + .matching = false, + .allow = false, + .sz_range = {.min =234 , .max =345 }, + }); +damos_test_commit_filter_for (test, &dst, + &(struct damos_filter ){ + .type =DAMOS_FILTER_TYPE_UNMAPPED , + .matching = true, + .allow = true, + }); +damos_test_commit_filter_for (test, &dst, + &(struct damos_filter ){ + .type =DAMOS_FILTER_TYPE_ADDR , + .matching = false, + .allow = false, + .addr_range = {.start =456 , .end =567 }, + }); +damos_test_commit_filter_for (test, &dst, + &(struct damos_filter ){ + .type =DAMOS_FILTER_TYPE_TARGET , + .matching = true, + .allow = true, + .target_idx =6 , + }); }static void damos_test_filter_out (struct kunit *test)
_
Patches currently in -mm which might be from [email protected] are