Skip to contentSkip to conversation

mm/damon/core: fix damos_commit_filter not changing allow

PATCH Applied Sang-Heon Jeon 2 participants 2 messages Aug 16, 2025

Subsystems (3)
lore
Share & tools
lore
#0 lore raw

PATCH v2 1/1 mm/damon/core: fix damos_commit_filter not changing allow

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 [email protected] # 6.14.x

---
Changes from v1 [1]:
- Fix wrong fixes section commit
- Add cc section for backporting

[1] https://lore.kernel.org/damon/[email protected]/

---
 mm/damon/core.c | 1 +
 1 file changed, 1 insertion(+)
mm/damon/core.c +1 -0
index 19c8f01fc81a..cb41fddca78c 100644
@@ -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);
 }
 
Signature · 1 line
2.43.0
maintainer Reviewed-by on v2 1/1
#1 lore raw

+ Andrew

Quoted 10 lines · On Sat, 16 Aug 2025 10:51:16 +0900 Sang-Heon Jeon <[email protected]> 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 [email protected] # 6.14.x

Thanks,
SJ

[...]