iomap: factor out iomap_dio_alignment helper

Extract the alignment computation from iomap_dio_bio_iter() into a
standalone helper so the upcoming simple direct I/O path can reuse it
without requiring a struct iomap_dio.

No functional change.

Signed-off-by: Fengnan Chang <changfengnan@bytedance.com>
Link: https://patch.msgid.link/20260701033253.46420-2-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:51 +08:00 • committed by Christian Brauner
commit 27b7efca5b
No known key found for this signature in database
GPG key ID: 91C61BC06578DCA2