Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

mm/damon/core: fix wrong damon_set_regions() argument

The third argument is the length of the second parameter. But addr_unit
is wrongly being passed. Fix it.

Link: https://lkml.kernel.org/r/20260314001854.79623-1-sj@kernel.org
Signed-off-by: SeongJae Park <sj@kernel.org>
Cc: Yang yingliang <yangyingliang@huawei.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>

authored by

SeongJae Park and committed by
Andrew Morton
5f9a5926 eabc2edd

+1 -1
+1 -1
mm/damon/core.c
··· 3136 3136 3137 3137 addr_range.start = *start; 3138 3138 addr_range.end = *end; 3139 - return damon_set_regions(t, &addr_range, addr_unit, min_region_sz); 3139 + return damon_set_regions(t, &addr_range, 1, min_region_sz); 3140 3140 } 3141 3141 3142 3142 /*