Re: [PATCH v4 1/5] iomap: export iomap_bio_read_folio_range_sync()

From: Namjae Jeon

Date: Tue Nov 17 2026 - 06:16:09 EST


On Mon, Nov 16, 2026 at 5:59 PM Chi Zhiling <chizhiling@xxxxxxx> wrote:
>
> From: Chi Zhiling <chizhiling@xxxxxxxxxx>
>
> Filesystems that provide a buffered write ->read_folio_range handler
> need to perform the same synchronous bio read as the default handler.
> Move the declaration of iomap_bio_read_folio_range_sync() from the
> internal header to <linux/iomap.h>, together with the !CONFIG_BLOCK
> fallback, and export it so that modular filesystems can call it.
>
> exfat will call it from its own ->read_folio_range handler to zero
> the stale bytes between valid_size and the end of the block under
> the folio lock during buffered writes.
>
> Reviewed-by: Christoph Hellwig <hch@xxxxxx>
> Signed-off-by: Chi Zhiling <chizhiling@xxxxxxxxxx>
Reviewed-by: Namjae Jeon <linkinjeon@xxxxxxxxxx>

Christian, if you apply this patch(1/5) to the iomap tree, I will
apply the remaining patches (2-5) into the exFAT tree.
Thanks!