Re: [PATCH] fs/dax: Remove redundant deferred list initialization

From: Muchun Song

Date: Thu Sep 03 2026 - 02:21:39 EST




> On Sep 3, 2026, at 13:02, Kaitao Cheng <kaitao.cheng@xxxxxxxxx> wrote:
>
> From: Kaitao Cheng <chengkaitao@xxxxxxxxxx>
>
> prep_compound_page() calls prep_compound_head(), which initializes
> folio->_deferred_list for compound folios with an order greater than one.
> Therefore, dax_folio_init() initializes the list twice for large DAX
> folios.
>
> Remove the redundant initialization from dax_folio_init(). This leaves
> the behavior unchanged and keeps compound folio initialization
> centralized in prep_compound_head().
>
> Signed-off-by: Kaitao Cheng <chengkaitao@xxxxxxxxxx>

Acked-by: Muchun Song <muchun.song@xxxxxxxxx>

Thanks.