Skip to contentSkip to conversation

iomap: fix inline data on buffered read

PATCH Bo Liu (刘波)-浪潮信息 1 participant 1 message Mar 19, 2025 VFS

lore
Share & tools
lore
#0 lore raw
Quoted 1 line

Previously, iomap_readpage_iter() returning 0 would break out of the loops

of

Quoted 10 lines

iomap_readahead_iter(), which is what iomap_read_inline_data() relies on.

However, commit d9dc477ff6a2 ("iomap: advance the iter directly on buffered read") changes this behavior without calling iomap_iter_advance(), which causes EROFS to get stuck in iomap_readpage_iter().

It seems iomap_iter_advance() cannot be called in iomap_read_inline_data() because of the iomap_write_begin() path, so handle this in iomap_readpage_iter() instead.

Quoted 7 lines
Fixes d9dc477ff6a2 ("iomap: advance the iter directly on buffered read")
Cc Brian Foster <[email protected]>
Cc Christoph Hellwig <[email protected]>
Cc "Darrick J. Wong" <[email protected]>
Cc Christian Brauner <[email protected]>