]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
mm/damon/core: pass migrate_dests to damos_commit_dests()
authorSeongJae Park <sj@kernel.org>
Tue, 11 Nov 2025 18:44:07 +0000 (10:44 -0800)
committerAndrew Morton <akpm@linux-foundation.org>
Thu, 20 Nov 2025 21:44:00 +0000 (13:44 -0800)
commitc1cefda77668ddaed56d2f44020e217bd6476951
tree91114d1ce7d31988dfffafaacb556b9694394280
parent11bb980d41682df3af06e36f9baf89e6d459fa4f
mm/damon/core: pass migrate_dests to damos_commit_dests()

damos_commit_dests() receives 'struct damos' pointers, while it uses only
their ->migrate_dests fields.  This makes code unnecessarily difficult to
read.  It also makes unit tests writing complicated.  Refactor the
function to receive pointers to the ->migrate_dests fields.

Link: https://lkml.kernel.org/r/20251111184415.141757-9-sj@kernel.org
Signed-off-by: SeongJae Park <sj@kernel.org>
Cc: Brendan Higgins <brendan.higgins@linux.dev>
Cc: David Gow <davidgow@google.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
mm/damon/core.c