]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commita89ffb3b1ed241f7db7873846bd56e93b5be4103
tree86082e5d2bd6bbfb6d31a57c85a0207836193062
parentc0b301ad3275f535fd9f313b8ef3502ae95c98ae
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