* [PATCH] fs/dax: Remove redundant deferred list initialization
@ 2026-09-03 5:02 Kaitao Cheng
2026-09-03 6:13 ` Muchun Song
2026-09-04 10:56 ` Christian Brauner
0 siblings, 2 replies; 3+ messages in thread
From: Kaitao Cheng @ 2026-09-03 5:02 UTC (permalink / raw)
To: Dan Williams, Matthew Wilcox, Jan Kara, Alexander Viro,
Christian Brauner
Cc: Muchun Song, linux-fsdevel, nvdimm, linux-kernel, Kaitao Cheng
From: Kaitao Cheng <chengkaitao@kylinos.cn>
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@kylinos.cn>
---
fs/dax.c | 2 --
1 file changed, 2 deletions(-)
diff --git a/fs/dax.c b/fs/dax.c
index 6ba50142eeb2..dad4efea7964 100644
--- a/fs/dax.c
+++ b/fs/dax.c
@@ -469,8 +469,6 @@ static void dax_folio_init(void *entry)
if (order > 0) {
prep_compound_page(&folio->page, order);
- if (order > 1)
- INIT_LIST_HEAD(&folio->_deferred_list);
WARN_ON_ONCE(folio_ref_count(folio));
}
}
--
2.50.1 (Apple Git-155)
^ permalink raw reply [flat|nested] 3+ messages in thread* Re: [PATCH] fs/dax: Remove redundant deferred list initialization
2026-09-03 5:02 [PATCH] fs/dax: Remove redundant deferred list initialization Kaitao Cheng
@ 2026-09-03 6:13 ` Muchun Song
2026-09-04 10:56 ` Christian Brauner
1 sibling, 0 replies; 3+ messages in thread
From: Muchun Song @ 2026-09-03 6:13 UTC (permalink / raw)
To: Kaitao Cheng
Cc: Dan Williams, Matthew Wilcox, Jan Kara, Alexander Viro,
Christian Brauner, linux-fsdevel, nvdimm, linux-kernel,
Kaitao Cheng
> On Sep 3, 2026, at 13:02, Kaitao Cheng <kaitao.cheng@linux.dev> wrote:
>
> From: Kaitao Cheng <chengkaitao@kylinos.cn>
>
> 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@kylinos.cn>
Acked-by: Muchun Song <muchun.song@linux.dev>
Thanks.
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [PATCH] fs/dax: Remove redundant deferred list initialization
2026-09-03 5:02 [PATCH] fs/dax: Remove redundant deferred list initialization Kaitao Cheng
2026-09-03 6:13 ` Muchun Song
@ 2026-09-04 10:56 ` Christian Brauner
1 sibling, 0 replies; 3+ messages in thread
From: Christian Brauner @ 2026-09-04 10:56 UTC (permalink / raw)
To: Dan Williams, Matthew Wilcox, Jan Kara, Alexander Viro, Kaitao Cheng
Cc: Muchun Song, linux-fsdevel, nvdimm, linux-kernel, Kaitao Cheng
On Thu, 03 Sep 2026 13:02:07 +0800, Kaitao Cheng wrote:
> fs/dax: Remove redundant deferred list initialization
Applied to the vfs-7.4.misc branch of the vfs/vfs.git tree.
Patches in the vfs-7.4.misc branch should appear in linux-next soon.
Please report any outstanding bugs that were missed during review in a
new review to the original patch series allowing us to drop it.
It's encouraged to provide Acked-bys and Reviewed-bys even though the
patch has now been applied. If possible patch trailers will be updated.
Note that commit hashes shown below are subject to change due to rebase,
trailer updates or similar. If in doubt, please check the listed branch.
tree: https://git.kernel.org/pub/scm/linux/kernel/git/vfs/vfs.git
branch: vfs-7.4.misc
[1/1] fs/dax: Remove redundant deferred list initialization
https://git.kernel.org/vfs/vfs/c/4dda2f40edd8
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2026-09-04 10:56 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-09-03 5:02 [PATCH] fs/dax: Remove redundant deferred list initialization Kaitao Cheng
2026-09-03 6:13 ` Muchun Song
2026-09-04 10:56 ` Christian Brauner
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®