]> git.ipfire.org Git - thirdparty/linux.git/commitdiff
mm/damon/tests/core-kunit: remove a redundant test case and add a new test case in...
authorShu Anzai <shu17az@gmail.com>
Wed, 24 Dec 2025 04:22:00 +0000 (04:22 +0000)
committerAndrew Morton <akpm@linux-foundation.org>
Wed, 21 Jan 2026 03:24:54 +0000 (19:24 -0800)
Remove a redundant test case from damos_test_commit_quota_goal() as it is
already covered.  Instead, add a new test for DAMOS_QUOTA_SOME_MEM_PSI_US,
which was previously not tested.

Link: https://lkml.kernel.org/r/20251224042200.2061847-6-shu17az@gmail.com
Signed-off-by: Shu Anzai <shu17az@gmail.com>
Reviewed-by: SeongJae Park <sj@kernel.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
mm/damon/tests/core-kunit.h

index 252ce3e001c893e0b178ffe926bab9bd030aefff..92ea25e2dc9e3bf9b949b638235985749dee2c06 100644 (file)
@@ -600,9 +600,10 @@ static void damos_test_commit_quota_goal(struct kunit *test)
                        });
        damos_test_commit_quota_goal_for(test, &dst,
                        &(struct damos_quota_goal) {
-                       .metric = DAMOS_QUOTA_USER_INPUT,
-                       .target_value = 789,
-                       .current_value = 12,
+                       .metric = DAMOS_QUOTA_SOME_MEM_PSI_US,
+                       .target_value = 234,
+                       .current_value = 345,
+                       .last_psi_total = 567,
                        });
 }