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

From: SJ Park

Date: Tue Sep 08 2026 - 11:31:45 EST


On Tue, 8 Sep 2026 06:54:11 -0700 SJ Park <sj@xxxxxxxxxx> wrote:

> From: Liew Rui Yan <aethernet65535@xxxxxxxxx>
>
> 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.

Sashiko found a few pre-existing issues but no blocker for this patch.


Thanks,
SJ

[...]