]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
fuse: call fuse_send_readpages explicitly from fuse_readahead
authorJoanne Koong <joannelkoong@gmail.com>
Mon, 29 Jun 2026 12:17:39 +0000 (14:17 +0200)
committerChristian Brauner <brauner@kernel.org>
Wed, 1 Jul 2026 13:26:47 +0000 (15:26 +0200)
commit3372eb0384b791faf133806da287819f5bfaad76
tree89f40e909a3aa04a3241466ded463dd4b7b54b88
parent044472d5ee7d71f918fa3f61bd65e4933a0c006e
fuse: call fuse_send_readpages explicitly from fuse_readahead

Move the call to fuse_send_readpages from the iomap ->submit_read method
to the fuse readahead implementation.

fuse_read_folio() does not need to call fuse_send_readpages() because it
always does reads synchronously (the iomap->submit_read method for this
was a no-op since data->ia is always NULL for fuse_read_folio()).

This prepares for an iomap fix that will call ->submit_read after each
iomap.

Signed-off-by: Joanne Koong <joannelkoong@gmail.com>
Signed-off-by: Christoph Hellwig <hch@lst.de>
Link: https://patch.msgid.link/20260629121750.3392300-3-hch@lst.de
Reviewed-by: "Darrick J. Wong" <djwong@kernel.org>
Signed-off-by: Christian Brauner (Amutable) <brauner@kernel.org>
fs/fuse/file.c