Skip to content

Commit ee2d4f6

Browse files
hqszgregkh
authored andcommitted
mm/damon/core: fix damos_commit_filter not changing allow
commit b3dee90 upstream. Current damos_commit_filter() does not persist the `allow' value of the filter. As a result, changing the `allow' value of a filter and committing doesn't change the `allow' value. Add the missing `allow' value update, so committing the filter persistently changes the `allow' value well. Link: https://lkml.kernel.org/r/20250816015116.194589-1-ekffu200098@gmail.com Fixes: fe6d7fd ("mm/damon/core: add damos_filter->allow field") Signed-off-by: Sang-Heon Jeon <ekffu200098@gmail.com> Reviewed-by: SeongJae Park <sj@kernel.org> Cc: <stable@vger.kernel.org> [6.14.x] Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
1 parent 81e8bdf commit ee2d4f6

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

mm/damon/core.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -881,6 +881,7 @@ static void damos_commit_filter(
881881
{
882882
dst->type = src->type;
883883
dst->matching = src->matching;
884+
dst->allow = src->allow;
884885
damos_commit_filter_arg(dst, src);
885886
}
886887

0 commit comments

Comments
 (0)