summaryrefslogtreecommitdiff
path: root/include/linux/timerqueue.h
diff options
context:
space:
mode:
authorVineet Agarwal <agarwal.vineet2006@gmail.com>2026-05-12 07:11:57 +0300
committerAndrew Morton <akpm@linux-foundation.org>2026-06-03 01:22:13 +0300
commitd200cfc81c069e2192c6cc082c38d1c8b0427989 (patch)
tree64f45e06bed601316f86dc5bf7ea973303421873 /include/linux/timerqueue.h
parent9b1b295e9fd354b2263aee80a1ef3605d1eee32e (diff)
downloadlinux-d200cfc81c069e2192c6cc082c38d1c8b0427989.tar.xz
mm/damon/sysfs-schemes: fix double increment of nr_regions
damos_sysfs_populate_region_dir() increments sysfs_regions->nr_regions twice when adding a new region: once explicitly before kobject_init_and_add(), and once again through the post-increment used for the kobject name. As a result, nr_regions no longer matches the actual number of live regions, and region directory names skip numbers (1, 3, 5, ...). Use the already incremented value for naming instead of incrementing nr_regions a second time. Link: https://lore.kernel.org/20260512041157.109845-1-agarwal.vineet2006@gmail.com Fixes: 66178e4ec30a ("mm/damon/sysfs: use damos_walk() for update_schemes_tried_{bytes,regions}") Signed-off-by: Vineet Agarwal <agarwal.vineet2006@gmail.com> Reviewed-by: SeongJae Park <sj@kernel.org> Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Diffstat (limited to 'include/linux/timerqueue.h')
0 files changed, 0 insertions, 0 deletions