]> Gentwo Git Trees - linux/.git/commit
iomap: move bio read logic into helper function
authorJoanne Koong <joannelkoong@gmail.com>
Fri, 26 Sep 2025 00:25:56 +0000 (17:25 -0700)
committerChristian Brauner <brauner@kernel.org>
Mon, 20 Oct 2025 18:21:25 +0000 (20:21 +0200)
commit573c14c8218b408b3fe9f6be058f85d0f586cf26
tree0cd6854fa0eafcdc8c306ce4b8c459f3413d0332
parent7aa6bc3e8766990824f66ca76c19596ce10daf3e
iomap: move bio read logic into helper function

Move the iomap_readpage_iter() bio read logic into a separate helper
function, iomap_bio_read_folio_range(). This is needed to make iomap
read/readahead more generically usable, especially for filesystems that
do not require CONFIG_BLOCK.

Additionally rename buffered write's iomap_read_folio_range() function
to iomap_bio_read_folio_range_sync() to better describe its synchronous
behavior.

Signed-off-by: Joanne Koong <joannelkoong@gmail.com>
Reviewed-by: Darrick J. Wong <djwong@kernel.org>
Signed-off-by: Christian Brauner <brauner@kernel.org>
fs/iomap/buffered-io.c