Re: [RFC PATCH -next 14/16] mm/damon/core: convert sz to byte units when updating state

From: Quanmin Yan
Date: Wed Aug 20 2025 - 06:10:44 EST


Hi SJ,

在 2025/8/14 1:08, SeongJae Park 写道:
On Wed, 13 Aug 2025 13:07:04 +0800 Quanmin Yan <yanquanmin1@xxxxxxxxxx> wrote:

After introducing ctx->addr_unit, the unit of sz might not
be in bytes. However, sz_applied is returned in bytes after
processing by paddr.
This is not an intended behavior, but a bug of my code. Let's update patches
3-6 of this series to return sz_applied as core-layer address unit, instead of
bytes.

To maintain external consistency, sz
is converted to byte units when updating the state.
Users could keep the consistency by multiplying the addr_unit, which they set
themselves.

Thanks for the clarification! this patch has been dropped from the v2 series.

Thanks,
Quanmin Yan