* [PATCH v2] mm/damon/core: fix damos_commit_filter not changing allow
@ 2025-08-16 1:51 Sang-Heon Jeon
2025-08-16 16:10 ` SeongJae Park
0 siblings, 1 reply; 2+ messages in thread
From: Sang-Heon Jeon @ 2025-08-16 1:51 UTC (permalink / raw)
To: sj, honggyu.kim; +Cc: damon, linux-mm, Sang-Heon Jeon, stable
Current damos_commit_filter() not persist allow value of filter. As a
result, changing allow value of filter and commit doesn't change
allow value.
Add the missing allow value update, so commit filter now persist changing
allow value well.
Fixes: fe6d7fdd6249 ("mm/damon/core: add damos_filter->allow field")
Cc: stable@vger.kernel.org # 6.14.x
Signed-off-by: Sang-Heon Jeon <ekffu200098@gmail.com>
---
Changes from v1 [1]:
- Fix wrong fixes section commit
- Add cc section for backporting
[1] https://lore.kernel.org/damon/20250815094059.133769-1-ekffu200098@gmail.com/
---
mm/damon/core.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/mm/damon/core.c b/mm/damon/core.c
index 19c8f01fc81a..cb41fddca78c 100644
--- a/mm/damon/core.c
+++ b/mm/damon/core.c
@@ -900,6 +900,7 @@ static void damos_commit_filter(
{
dst->type = src->type;
dst->matching = src->matching;
+ dst->allow = src->allow;
damos_commit_filter_arg(dst, src);
}
--
2.43.0
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [PATCH v2] mm/damon/core: fix damos_commit_filter not changing allow
2025-08-16 1:51 [PATCH v2] mm/damon/core: fix damos_commit_filter not changing allow Sang-Heon Jeon
@ 2025-08-16 16:10 ` SeongJae Park
0 siblings, 0 replies; 2+ messages in thread
From: SeongJae Park @ 2025-08-16 16:10 UTC (permalink / raw)
To: Sang-Heon Jeon
Cc: SeongJae Park, honggyu.kim, damon, linux-mm, stable,
Andrew Morton
+ Andrew
On Sat, 16 Aug 2025 10:51:16 +0900 Sang-Heon Jeon <ekffu200098@gmail.com> wrote:
> Current damos_commit_filter() not persist allow value of filter. As a
> result, changing allow value of filter and commit doesn't change
> allow value.
>
> Add the missing allow value update, so commit filter now persist changing
> allow value well.
>
> Fixes: fe6d7fdd6249 ("mm/damon/core: add damos_filter->allow field")
> Cc: stable@vger.kernel.org # 6.14.x
> Signed-off-by: Sang-Heon Jeon <ekffu200098@gmail.com>
Reviewed-by: SeongJae Park <sj@kernel.org>
Thanks,
SJ
[...]
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2025-08-16 16:10 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-08-16 1:51 [PATCH v2] mm/damon/core: fix damos_commit_filter not changing allow Sang-Heon Jeon
2025-08-16 16:10 ` SeongJae Park
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).