mm-damon-core-skip-quota-score-setup-when-the-quota-is-full.patch removed from -mm tree
The quilt patch titled
Subject: mm/damon/core: skip quota score setup when the quota is full
has been removed from the -mm tree. Its filename was
mm-damon-core-skip-quota-score-setup-when-the-quota-is-full.patch
This patch was dropped because it was merged into the mm-stable branch of git://git.kernel.org/pub/scm/linux/kernel/git/akpm/mm
------------------------------------------------------
From: Liew Rui Yan <[email protected]>
Subject: mm/damon/core: skip quota score setup when the quota is full
Date: Mon, 21 Sep 2026 08:15:43 -0700
Patch series "mm/damon: improvements in efficiency, error handling, documents".
Four various improvements. Patch 1 from Liew Rui Yan skips unnecessary quota setup work when relevant. Patch 2 from Xuewen Wang propagates ignored damon_call() error to sysfs users. Patch 3 from Adrian Huang (Lenovo) fixes typos in comments. Patch 4 from Karthikeyan KS clarifies zero sample interval acceptance on kernel-doc comment.
This patch (of 4):
In damos_adjust_quota(), the quota could already be full.
In this situation, damos_adjust_quota() will still calculates quota->min_score. However, this min_score will not be used in this window, because in damon_do_apply_schemes(), damos_quota_is_full() will always returns true, preventing the scheme from being applied to any region.
Therefore, add a short circuit for 'esz < min_region_sz' schemes to early return from damos_adjust_quota() before calculating min_score.
---
mm/damon/core.c | 2 ++ 1 file changed, 2 insertions(+)
mm/damon/core.c renamed from mm/damon/core.c~mm-damon-core-skip-quota-score-setup-when-the-quota-is-full +2 -0
@@ -3385,6 +3385,8 @@ static void damos_adjust_quota(struct dadamos_trace_esz (c, s, quota); } +if (damos_quota_is_full (quota, c->min_region_sz)) +return ;if (!c->ops.get_scheme_score)return ;
_
Patches currently in -mm which might be from [email protected] are
mm-damon-tests-core-kunit-add-test-for-unconditionally-skipping-the-last-region.patch