]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
iomap: only call into ->submit_read when there is a read_ctx
authorChristoph Hellwig <hch@lst.de>
Mon, 23 Feb 2026 13:20:10 +0000 (05:20 -0800)
committerChristian Brauner <brauner@kernel.org>
Tue, 10 Mar 2026 09:29:03 +0000 (10:29 +0100)
commit19fb5f9780753bf99065f13e29cf5761eb5380db
tree03653d737bcdebd85dd80fe1c8fceeba865a6638
parent4d25c7d68896b4002c4ab5cd646775392bb7fbb4
iomap: only call into ->submit_read when there is a read_ctx

Move the NULL check into the callers to simplify the callees.

Fuse was missing this before, but has a constant read_ctx that is
never NULL or changed, so no change here either.

Signed-off-by: Christoph Hellwig <hch@lst.de>
Link: https://patch.msgid.link/20260223132021.292832-11-hch@lst.de
Tested-by: Anuj Gupta <anuj20.g@samsung.com>
Reviewed-by: "Darrick J. Wong" <djwong@kernel.org>
Signed-off-by: Christian Brauner <brauner@kernel.org>
fs/iomap/bio.c
fs/iomap/buffered-io.c
fs/ntfs3/inode.c