summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorShu Anzai <shu17az@gmail.com>2025-12-24 07:22:00 +0300
committerAndrew Morton <akpm@linux-foundation.org>2026-01-21 06:24:54 +0300
commit860996495f989fd86b7f1525d7500a6e15986a24 (patch)
treeddabd447f6e48668feb316637fc41373820e31ee
parent2caf45764a4fdb5d35524e364c963bb9e2d07fce (diff)
downloadlinux-860996495f989fd86b7f1525d7500a6e15986a24.tar.xz
mm/damon/tests/core-kunit: remove a redundant test case and add a new test case in damos_test_commit_quota_goal()
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>
-rw-r--r--mm/damon/tests/core-kunit.h7
1 files changed, 4 insertions, 3 deletions
diff --git a/mm/damon/tests/core-kunit.h b/mm/damon/tests/core-kunit.h
index 252ce3e001c8..92ea25e2dc9e 100644
--- a/mm/damon/tests/core-kunit.h
+++ b/mm/damon/tests/core-kunit.h
@@ -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,
});
}