Re: [PATCH v3 11/11] mm/damon: add damon_ctx->min_sz_region
From: SeongJae Park
Date: Wed Sep 17 2025 - 12:00:57 EST
On Thu, 28 Aug 2025 10:12:42 -0700 SeongJae Park <sj@xxxxxxxxxx> wrote:
> From: Quanmin Yan <yanquanmin1@xxxxxxxxxx>
>
> Adopting addr_unit would make DAMON_MINREGION 'addr_unit * 4096'
> bytes and cause data alignment issues[1].
>
> Add damon_ctx->min_sz_region to change DAMON_MIN_REGION from a global
> macro value to per-context variable.
>
> [1] https://lore.kernel.org/all/527714dd-0e33-43ab-bbbd-d89670ba79e7@xxxxxxxxxx
I think I found an issue of this patch. Please refer to the attaching patch
for details.
This patch is in the mm tree and not yet merged into the mainline. Andrew,
could you please add the attached patch as a fixup of this one?
Thanks,
SJ
==== Attachment 0 (0001-mm-damon-sysfs-set-damon_ctx-min_sz_region-only-for-.patch) ====