Re: [RFC PATCH v9 1/3] ocfs2: Add new ocfs2_map_blocks() to introduce iomap feature
From: Heming Zhao
Date: Mon Nov 23 2026 - 00:39:21 EST
On 11/21/26 02:34, Christoph Hellwig wrote:
On Fri, Nov 20, 2026 at 02:00:11PM +0800, Heming Zhao wrote:
As part of migrating OCFS2 DIO read/write code paths towards the modern
and performant iomap framework, here introduces ocfs2_map_blocks() to
replace the legacy, high-overhead buffer_head based block mapping
routines.
Do you have numbers to antiy the high overhead? Or should this be toned
down a bit?
Thanks for the review.
"high-overhead buffer_head" means that regardless of the IO chunk size
(per IOCB), the OCFS2 buffer_head DIO path splits the IO into 4KB page-sized
IOs. This logic cannot fully utilize the bandwidth and easily leads to
fragmentation. In contrast, with this patch set, iomap can handle up to 16MB
per IO chunk.
-Heming
In addition, OCFS2_MAP_* flags are defined to gridge OCFS2 internal block
mapping flags with the iomap API requirements.
"gridge"?
Otherwise looks good:
Reviewed-by: Christoph Hellwig <hch@xxxxxx>