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>
Wed, 19 Jul 2023 19:05:23 +0000 (13:05 -0600)
commit2f82a289b3ebcfc4ade72b7f71a40310b58bd8e3
tree929cc71b020113c26049d6179fd7d696a7e737de
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.

Signed-off-by: Jens Axboe <axboe@kernel.dk>
fs/iomap/direct-io.c