v2
2026-09-25
DAMON 构造 scheme 保留配额 · v2
修复 damon_commit_ctx 临时 scheme 构造时 damon_new_scheme 清空运行态配额的问题,改为初始化副本并加测试。
原始补丁链接
子 Patch(2)
1/2
mm/damon/core: preserve the quota passed to damon_new_scheme()
damon_commit_ctx() first commits the running context’s parameters to a temporary context for validating proposed updates. When damon_commit_schemes() creates the temporary schemes, it passes the runni
2/2
mm/damon/tests/core-kunit: test preservation of quota state
Check that damon_new_scheme() initializes the new scheme’s quota without changing the quota passed as a parameter. Cover all eight fields initialized by damos_quota_init(). Also check that damon_comm