aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/lib/maple_tree.c
diff options
context:
space:
mode:
authorSeongJae Park <sj@kernel.org>2025-02-10 10:27:35 -0800
committerAndrew Morton <akpm@linux-foundation.org>2025-03-16 22:06:09 -0700
commit40eb655b410d5c842313e556f743888033687865 (patch)
tree3420c1322426fbdb01cc1a912777da31e2ecf492 /lib/maple_tree.c
parentmm/damon/core: unset damos->walk_completed after confimed set (diff)
downloadwireguard-linux-40eb655b410d5c842313e556f743888033687865.tar.xz
wireguard-linux-40eb655b410d5c842313e556f743888033687865.zip
mm/damon/core: do not call damos_walk_control->walk() if walk is completed
damos_walk() invokes callback functions of schemes until all schemes finishes at least one round of walks. If there are multiple DAMOS schemes having different apply_interval, the callback functions for longer apply interval scheme will be called for more than a round of the walk. The behavior is different from the document (see damos_walk() kernel-doc comment), and not useful. Make the behavior be same to the documented one, by stopping invoking the callback if the walk for the given scheme is completed. Link: https://lkml.kernel.org/r/20250210182737.134994-3-sj@kernel.org Fixes: bf0eaba0ff9c ("mm/damon/core: implement damos_walk()") Signed-off-by: SeongJae Park <sj@kernel.org> Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Diffstat (limited to 'lib/maple_tree.c')
0 files changed, 0 insertions, 0 deletions