]> www.infradead.org Git - users/jedix/linux-maple.git/commit
mm/damon/core: fix commit_ops_filters by using correct nth function
authorSang-Heon Jeon <ekffu200098@gmail.com>
Sun, 10 Aug 2025 12:42:01 +0000 (21:42 +0900)
committerAndrew Morton <akpm@linux-foundation.org>
Tue, 19 Aug 2025 23:35:54 +0000 (16:35 -0700)
commit63f5dec16760f2cd7d3f9034d18fc1fa0d83652f
tree4b67ca80aaf889a440d33e6474b05816dd9a5b2d
parent9a6a6a3191574a01dcf7a7d9385246d7bc8736bc
mm/damon/core: fix commit_ops_filters by using correct nth function

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.

Link: https://lkml.kernel.org/r/20250810124201.15743-1-ekffu200098@gmail.com
Fixes: 3607cc590f18 ("mm/damon/core: support committing ops_filters") # 6.15.x
Signed-off-by: Sang-Heon Jeon <ekffu200098@gmail.com>
Reviewed-by: SeongJae Park <sj@kernel.org>
Cc: <stable@vger.kernel.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
mm/damon/core.c