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>
This commit is contained in:
Christoph Hellwig 2026-02-23 05:20:10 -08:00 • committed by Christian Brauner
commit 19fb5f9780
No known key found for this signature in database
GPG key ID: 91C61BC06578DCA2
3 changed files with 4 additions and 8 deletions