From: Sang-Heon Jeon Date: Sat, 16 Aug 2025 01:51:16 +0000 (+0900) Subject: mm/damon/core: fix damos_commit_filter not changing allow X-Git-Tag: v6.16.4~212 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=ee2d4f6cd0217d39dc91f16501e70ac9d065f2a9;p=thirdparty%2Fkernel%2Fstable.git mm/damon/core: fix damos_commit_filter not changing allow commit b3dee902b6c26b7d8031a4df19753e27dcfcba01 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: fe6d7fdd6249 ("mm/damon/core: add damos_filter->allow field") Signed-off-by: Sang-Heon Jeon Reviewed-by: SeongJae Park Cc: [6.14.x] Signed-off-by: Andrew Morton Signed-off-by: Greg Kroah-Hartman --- diff --git a/mm/damon/core.c b/mm/damon/core.c index d1a37e66b8ab4..8ead13792f049 100644 --- a/mm/damon/core.c +++ b/mm/damon/core.c @@ -881,6 +881,7 @@ static void damos_commit_filter( { dst->type = src->type; dst->matching = src->matching; + dst->allow = src->allow; damos_commit_filter_arg(dst, src); }