[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-Id: <20250822180322.47842-1-sj@kernel.org>
Date: Fri, 22 Aug 2025 11:03:22 -0700
From: SeongJae Park <sj@...nel.org>
To: Quanmin Yan <yanquanmin1@...wei.com>
Cc: SeongJae Park <sj@...nel.org>,
akpm@...ux-foundation.org,
damon@...ts.linux.dev,
linux-kernel@...r.kernel.org,
linux-mm@...ck.org,
wangkefeng.wang@...wei.com,
zuoze1@...wei.com
Subject: Re: [PATCH 11/11] mm/damon: add damon_ctx->min_region
On Fri, 22 Aug 2025 09:29:04 +0800 Quanmin Yan <yanquanmin1@...wei.com> wrote:
>
> 在 2025/8/22 1:33, SeongJae Park 写道:
> > On Thu, 21 Aug 2025 18:51:59 +0800 Quanmin Yan <yanquanmin1@...wei.com> wrote:
> >
> >> Adopting addr_unit would make DAMON_MINREGION 'addr_unit * 4096'
> >> bytes and cause data alignment issues[1].
> >>
> >> Add damon_ctx->min_region to change DAMON_MIN_REGION from a global
> > s/min_region/min_sz_region/ ?
> >
> >> macro value to per-context variable.
> >>
> >> [1] https://lore.kernel.org/all/527714dd-0e33-43ab-bbbd-d89670ba79e7@huawei.com
> >>
> >> Signed-off-by: Quanmin Yan <yanquanmin1@...wei.com>
> >> ---
> >> include/linux/damon.h | 4 ++-
> >> mm/damon/core.c | 67 ++++++++++++++++++++----------------
> >> mm/damon/sysfs.c | 8 +++--
> >> mm/damon/tests/core-kunit.h | 21 ++++++-----
> >> mm/damon/tests/vaddr-kunit.h | 2 +-
> >> mm/damon/vaddr.c | 2 +-
> >> 6 files changed, 61 insertions(+), 43 deletions(-)
> > [...]
> >> @@ -1248,6 +1253,7 @@ int damon_commit_ctx(struct damon_ctx *dst, struct damon_ctx *src)
> >> }
> >> dst->ops = src->ops;
> >> dst->addr_unit = src->addr_unit;
> >> + dst->min_sz_region = max(DAMON_MIN_REGION / src->addr_unit, 1);
> > Can't we set this as src->min_sz_region?
> >
> > I asked a same question[1] to the previous version but seems it was missed.
>
> I apologize for the issues caused by my misunderstanding and carelessness.
> I will make adjustments and release the v2 version as soon as possible, and I
> will not make similar mistakes again in the future.
No worry, we all miss someething sometimes ;) I confirmed your change on v2.
Thank you for correctly making the change.
Thanks,
SJ
[...]
Powered by blists - more mailing lists