Commit b3dee902 authored by Sang-Heon Jeon's avatar Sang-Heon Jeon Committed by Andrew Morton
Browse files

mm/damon/core: fix damos_commit_filter not changing allow

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: fe6d7fdd ("mm/damon/core: add damos_filter->allow field")
Signed-off-by: default avatarSang-Heon Jeon <ekffu200098@gmail.com>
Reviewed-by: default avatarSeongJae Park <sj@kernel.org>
Cc: <stable@vger.kernel.org>	[6.14.x]
Signed-off-by: default avatarAndrew Morton <akpm@linux-foundation.org>
parent 2e6053fe
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -883,6 +883,7 @@ static void damos_commit_filter(
{
	dst->type = src->type;
	dst->matching = src->matching;
	dst->allow = src->allow;
	damos_commit_filter_arg(dst, src);
}