Re: [PATCH v3 11/11] mm/damon: add damon_ctx->min_sz_region
From: Andrew Morton
Date: Wed Sep 17 2025 - 17:29:06 EST
On Wed, 17 Sep 2025 09:00:41 -0700 SeongJae Park <sj@xxxxxxxxxx> wrote:
> 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?
The flawed patch is actually in mm.git's mm-stable branch, which is
supposedly non-rebasing. So I queued this patch as separate commit, with
Fixes: d8f867fa0825 ("mm/damon: add damon_ctx->min_sz_region")