diff options
| author | 2026-05-22 08:40:13 -0700 | |
|---|---|---|
| committer | 2026-06-04 14:45:00 -0700 | |
| commit | b23dbda659b645482e3234ad10773d991a288e2f (patch) | |
| tree | c8f5bfedbd97d9f0e9a65dd7c95d0460454685f3 /scripts/Makefile.thinlto | |
| parent | mm/damon/core: safely handle no region case in damon_set_regions() (diff) | |
mm/damon/core: do not use region out of a loop in damon_set_regions()
damon_set_regions() assumes the DAMON region iterator is referencing the
last region after the region iteration loop is completed. The code is
indeed implemented in the way, but that is not a documented safe behavior.
Hence it is unreliable and difficult to read. Cleanup the code to avoid
the case.
No behavioral change is intended.
Link: https://lore.kernel.org/20260522154026.80546-3-sj@kernel.org
Signed-off-by: SeongJae Park <sj@kernel.org>
Cc: Brendan Higgins <brendan.higgins@linux.dev>
Cc: Shuah Khan <shuah@kernel.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Diffstat (limited to 'scripts/Makefile.thinlto')
0 files changed, 0 insertions, 0 deletions
