mm-damon-core-fix-commit_ops_filters-by-using-correct-nth-function.patch removed from -mm tree
The quilt patch titled
Subject: mm/damon/core: fix commit_ops_filters by using correct nth function
has been removed from the -mm tree. Its filename was
mm-damon-core-fix-commit_ops_filters-by-using-correct-nth-function.patch
This patch was dropped because it was merged into the mm-hotfixes-stable branch of git://git.kernel.org/pub/scm/linux/kernel/git/akpm/mm
------------------------------------------------------
From: Sang-Heon Jeon <[email protected]>
Subject: mm/damon/core: fix commit_ops_filters by using correct nth function
Date: Sun, 10 Aug 2025 21:42:01 +0900
damos_commit_ops_filters() incorrectly uses damos_nth_filter() which iterates core_filters. As a result, performing a commit unintentionally corrupts ops_filters.
Add damos_nth_ops_filter() which iterates ops_filters. Use this function to fix issues caused by wrong iteration.
---
mm/damon/core.c | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-)
mm/damon/core.c renamed from mm/damon/core.c~mm-damon-core-fix-commit_ops_filters-by-using-correct-nth-function +13 -1
@@ -845,6 +845,18 @@ static struct damos_filter *damos_nth_fireturn NULL ; } +static struct damos_filter *damos_nth_ops_filter (int n,struct damos *s) +{ +struct damos_filter *filter; +int i =0 ; + +damos_for_each_ops_filter (filter, s) { +if (i++ == n) +return filter; + } +return NULL ; +} +static void damos_commit_filter_arg (struct damos_filter *dst,struct damos_filter *src) {
@@ -908,7 +920,7 @@ static int damos_commit_ops_filters(struint i =0 , j =0 ;damos_for_each_ops_filter_safe (dst_filter, next, dst) { - src_filter =damos_nth_filter (i++, src); + src_filter =damos_nth_ops_filter (i++, src);if (src_filter)damos_commit_filter (dst_filter, src_filter);else
_
Patches currently in -mm which might be from [email protected] are
mm-damon-core-set-quota-charged_from-to-jiffies-at-first-charge-window.patch mm-damon-update-expired-description-of-damos_action.patch docs-mm-damon-design-fix-typo-s-sz_trtied-sz_tried.patch selftests-damon-test-no-op-commit-broke-damon-status.patch selftests-damon-test-no-op-commit-broke-damon-status-fix.patch mm-damon-tests-core-kunit-add-damos_commit_filter-test.patch