iomap: cleanup up iomap_dio_bio_end_io()
authorJens Axboe <axboe@kernel.dk>
Wed, 19 Jul 2023 15:34:27 +0000 (09:34 -0600)
committerJens Axboe <axboe@kernel.dk>
Fri, 21 Jul 2023 14:04:48 +0000 (08:04 -0600)
commit392b638ff96f198b56b2235f2ca0a41a304a190b
treec5d7b115f25a665db14beb385583b32cd14b5912
parentccff6d117d8dc8d8d86e8695a75e5f8b01e573bf
iomap: cleanup up iomap_dio_bio_end_io()

Make the logic a bit easier to follow:

1) Add a release_bio out path, as everybody needs to touch that, and
   have our bio ref check jump there if it's non-zero.
2) Add a kiocb local variable.
3) Add comments for each of the three conditions (sync, inline, or
   async workqueue punt).

No functional changes in this patch.

Reviewed-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
fs/iomap/direct-io.c