Re: [PATCH v3] mm/damon/core: allow esz to be set to zero

From: SJ Park

Date: Sat Sep 05 2026 - 12:18:40 EST


Hello Liew,

On Sat, 5 Sep 2026 20:44:58 +0800 Liew Rui Yan <aethernet65535@xxxxxxxxx> wrote:

> When the temporal quota goal tuner determines that the goal has been
> achieved (score >= 10000), it sets esz_bp to zero so that the esz
> becomes zero. However, damos_set_effective_quota() clamps the esz to
> min_region_sz when quota->ms is set.
>
> This is a minor issue, the main problem is that it doesn't match the
> description in the documentation, which state that if the goal has
> already been [over-]achieved, the quota will be set to zero.
>
> Fix this by set quota (esz) as minimum as possible.

Thank you for finding and fixing this.

>
> Fixes: 8bbde987c2b8 ("mm/damon/core: disallow time-quota setting zero esz")
> Cc: <stable@xxxxxxxxxxxxxxx> # v7.1.x
> Signed-off-by: Liew Rui Yan <aethernet65535@xxxxxxxxx>

Reviewed-by: SJ Park <sj@xxxxxxxxxx>

This patch is applied to damon/next [1] tree. If this patch is not added to
mm.git in short term (~1 week?), I will ask mm.git maintainer (Andrew Morton)
to pick this. So, no action from your side is needed for now. If it seems I
also forgot doing that or you cannot wait for my action, please feel free to
directly ask that to Andrew.

[1] https://origin.kernel.org/doc/html/latest/mm/damon/maintainer-profile.html#scm-trees



Thanks,
SJ

[...]