Re: [PATCH 2/2] mm/damon/tests/core-kunit: test preservation of caller quota state
From: SJ Park
Date: Tue Sep 22 2026 - 08:45:59 EST
On Mon, 21 Sep 2026 02:30:47 +0200 Karl Mehltretter <kmehltretter@xxxxxxxxx> wrote:
> Check that damon_new_scheme() initializes the new scheme's quota without
> changing the caller's quota. Cover all eight fields initialized by
> damos_quota_init().
>
> Also check that damon_commit_ctx() preserves those fields in the
> destination scheme for both accepted and rejected parameter updates.
> Use an invalid min_region_sz for the rejected update and confirm that
> returning -EINVAL leaves the running quota state unchanged.
>
> Without the preceding fix, all eight fields are cleared in the
> constructor test and in both context update cases.
Looks good to me.
>
> Assisted-by: LLM
> Signed-off-by: Karl Mehltretter <kmehltretter@xxxxxxxxx>
Reviewed-by: SJ Park <sj@xxxxxxxxxx>
Thanks,
SJ
[...]