]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
mm/damon/core: commit damos->target_nid
authorBijan Tabatabai <bijantabatab@micron.com>
Wed, 9 Jul 2025 00:47:29 +0000 (19:47 -0500)
committerAndrew Morton <akpm@linux-foundation.org>
Sun, 20 Jul 2025 01:59:48 +0000 (18:59 -0700)
commit579bd5006fe7f4a7abb32da0160d376476cab67d
tree16fca23cd4cdbaed33a7c1173115345e2518bcf0
parent749cc6533b662166fb387486e408e581a87b2a34
mm/damon/core: commit damos->target_nid

When committing new scheme parameters from the sysfs, the target_nid field
of the damos struct would not be copied.  This would result in the
target_nid field to retain its original value, despite being updated in
the sysfs interface.

This patch fixes this issue by copying target_nid in damos_commit().

Link: https://lkml.kernel.org/r/20250709004729.17252-1-bijan311@gmail.com
Fixes: 83dc7bbaecae ("mm/damon/sysfs: use damon_commit_ctx()")
Signed-off-by: Bijan Tabatabai <bijantabatab@micron.com>
Reviewed-by: SeongJae Park <sj@kernel.org>
Cc: Jonathan Corbet <corbet@lwn.net>
Cc: Ravi Shankar Jonnalagadda <ravis.opensrc@micron.com>
Cc: <stable@vger.kernel.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
mm/damon/core.c