mm-damon-core-use-time_before-for-next_apply_sis.patch removed from -mm tree
The quilt patch titled
Subject: mm/damon/core: use time_before() for next_apply_sis
has been removed from the -mm tree. Its filename was
mm-damon-core-use-time_before-for-next_apply_sis.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: SeongJae Park <[email protected]>
Subject: mm/damon/core: use time_before() for next_apply_sis
Date: Sat, 7 Mar 2026 11:49:13 -0800
damon_ctx->passed_sample_intervals and damos->next_apply_sis are unsigned long, and compared via normal comparison operators. It is unsafe from overflow. Use time_before(), which is safe from overflow when correctly used, instead.
---
mm/damon/core.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-)
mm/damon/core.c renamed from mm/damon/core.c~mm-damon-core-use-time_before-for-next_apply_sis +3 -3
@@ -2097,7 +2097,7 @@ static void damon_do_apply_schemes(strucdamon_for_each_scheme (s, c) {struct damos_quota *quota = &s->quota; -if (c->passed_sample_intervals < s->next_apply_sis) +if (time_before (c->passed_sample_intervals, s->next_apply_sis))continue ;if (!s->wmarks.activated)
@@ -2455,7 +2455,7 @@ static void kdamond_apply_schemes(structbool has_schemes_to_apply = false;damon_for_each_scheme (s, c) { -if (c->passed_sample_intervals < s->next_apply_sis) +if (time_before (c->passed_sample_intervals, s->next_apply_sis))continue ;if (!s->wmarks.activated)
@@ -2479,7 +2479,7 @@ static void kdamond_apply_schemes(struct }damon_for_each_scheme (s, c) { -if (c->passed_sample_intervals < s->next_apply_sis) +if (time_before (c->passed_sample_intervals, s->next_apply_sis))continue ;damos_walk_complete (c, s);damos_set_next_apply_sis (s, c);
_
Patches currently in -mm which might be from [email protected] are
mm-damon-sysfs-dealloc-repeat_call_control-if-damon_call-fails.patch