iomap: pass error code to should_report_dio_fserror directly

Change should_report_dio_fserror() to take an error code instead of the
full struct iomap_dio, decoupling it for reuse by the upcoming simple
direct I/O path.

No functional change.

Signed-off-by: Fengnan Chang <changfengnan@bytedance.com>
Link: https://patch.msgid.link/20260701033253.46420-3-changfengnan@bytedance.com
Reviewed-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Christian Brauner (Amutable) <brauner@kernel.org>
This commit is contained in:
Fengnan Chang 2026-07-01 11:32:52 +08:00 • committed by Christian Brauner
commit ef793297cd
No known key found for this signature in database
GPG key ID: 91C61BC06578DCA2