summaryrefslogtreecommitdiff
path: root/mm/damon/stat.c
diff options
context:
space:
mode:
authorSeongJae Park <sj@kernel.org>2026-03-17 10:43:01 -0400
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2026-03-19 16:15:32 +0100
commit7a91e8d1867dfa0ce6da415e544b7635e8bb5e12 (patch)
treecad2f80d62c35d171d5ffa33df755a2c82858d7a /mm/damon/stat.c
parente4f13f7104265924239e676ed1b9d319160e29e0 (diff)
mm/damon: rename min_sz_region of damon_ctx to min_region_sz
[ Upstream commit cc1db8dff8e751ec3ab352483de366b7f23aefe2 ] 'min_sz_region' field of 'struct damon_ctx' represents the minimum size of each DAMON region for the context. 'struct damos_access_pattern' has a field of the same name. It confuses readers and makes 'grep' less optimal for them. Rename it to 'min_region_sz'. Link: https://lkml.kernel.org/r/20260117175256.82826-9-sj@kernel.org Signed-off-by: SeongJae Park <sj@kernel.org> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Stable-dep-of: c80f46ac228b ("mm/damon/core: disallow non-power of two min_region_sz") Signed-off-by: Sasha Levin <sashal@kernel.org> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'mm/damon/stat.c')
-rw-r--r--mm/damon/stat.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/mm/damon/stat.c b/mm/damon/stat.c
index ed8e3629d31a..922a6a6e65db 100644
--- a/mm/damon/stat.c
+++ b/mm/damon/stat.c
@@ -189,7 +189,7 @@ static struct damon_ctx *damon_stat_build_ctx(void)
goto free_out;
damon_add_target(ctx, target);
if (damon_set_region_biggest_system_ram_default(target, &start, &end,
- ctx->min_sz_region))
+ ctx->min_region_sz))
goto free_out;
return ctx;
free_out: