iomap: inline iomap_dio_bio_opflags()
authorJohn Garry <john.g.garry@oracle.com>
Thu, 20 Mar 2025 12:02:48 +0000 (12:02 +0000)
committerChristian Brauner <brauner@kernel.org>
Thu, 20 Mar 2025 14:16:03 +0000 (15:16 +0100)
commitd279c80e0bac8a42c7d05744fefbd3b4736dd475
treebcd8d59ea6304a85e1e3d31e01873bb9983b60f8
parentb26816b4e3202b837eb772db143d832d8ca255db
iomap: inline iomap_dio_bio_opflags()

It is neater to build blk_opf_t fully in one place, so inline
iomap_dio_bio_opflags() in iomap_dio_bio_iter().

Also tidy up the logic in dealing with IOMAP_DIO_CALLER_COMP, in generally
separate the logic in dealing with flags associated with reads and writes.

Originally-from: Christoph Hellwig <hch@lst.de>
Reviewed-by: "Ritesh Harjani (IBM)" <ritesh.list@gmail.com>
Signed-off-by: John Garry <john.g.garry@oracle.com>
Link: https://lore.kernel.org/r/20250320120250.4087011-2-john.g.garry@oracle.com
Signed-off-by: Christian Brauner <brauner@kernel.org>
fs/iomap/direct-io.c