mirror of
git://git.yoctoproject.org/linux-yocto.git
synced 2025-10-22 23:13:01 +02:00
mm/damon/core: commit damos->target_nid
commit579bd5006f
upstream. 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:83dc7bbaec
("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> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
parent
dd1f0f4bfb
commit
7d61c5c5ab
|
@ -993,6 +993,7 @@ static int damos_commit(struct damos *dst, struct damos *src)
|
|||
return err;
|
||||
|
||||
dst->wmarks = src->wmarks;
|
||||
dst->target_nid = src->target_nid;
|
||||
|
||||
err = damos_commit_filters(dst, src);
|
||||
return err;
|
||||
|
|
Loading…
Reference in New Issue
Block a user