Re: [PATCH] mm/damon/core: use list_{next,prev}_entry() in damon_{next,prev}_region()

From: SJ Park

Date: Tue Nov 03 2026 - 09:44:55 EST


On Tue, 3 Nov 2026 18:07:14 +0800 Enze Li <lienze@xxxxxxxxxx> wrote:

> damon_next_region() and damon_prev_region() manually do container_of()
> type casting to fetch the next and previous region from the linked
> list. Use the dedicated list.h helpers, list_next_entry() and
> list_prev_entry(), as damon_first_region() and damon_last_region() do.

Looks good to me.

>
> Signed-off-by: Enze Li <lienze@xxxxxxxxxx>

Reviewed-by: SJ Park <sj@xxxxxxxxxx>

This patch is applied to damon/next [1] tree. I will repost it soon (~1 week)
as an mm.git merge request. So, no action from your side is needed for now.

[1] https://origin.kernel.org/doc/html/latest/mm/damon/maintainer-profile.html#scm-trees


Thanks,
SJ

[...]