btrfs: simplify code flow in btrfs_submit_dio_bio
authorChristoph Hellwig <hch@lst.de>
Thu, 26 May 2022 07:36:34 +0000 (09:36 +0200)
committerDavid Sterba <dsterba@suse.com>
Mon, 25 Jul 2022 15:45:33 +0000 (17:45 +0200)
commite6484bd4881f340e04de6833230225ee3ba7ce6d
tree86082e5d2bd6bbfb6d31a57c85a0207836193062
parentb4c46bdea96af1c79cfc0bcd0b387af311368145
btrfs: simplify code flow in btrfs_submit_dio_bio

There is no exit block and cleanup and the function is reasonably short
so we can use inline return and not the goto. This makes the function
more straight forward.

Reviewed-by: Johannes Thumshirn <johannes.thumshirn@wdc.com>
Reviewed-by: Qu Wenruo <wqu@suse.com>
Signed-off-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: David Sterba <dsterba@suse.com>
Signed-off-by: David Sterba <dsterba@suse.com>
fs/btrfs/inode.c