]> 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)
commitc06fa154269e19626ea6bb43d40ceb2500f16a3a
tree86082e5d2bd6bbfb6d31a57c85a0207836193062
parent34fde4be542f4474c2693e3d6c9455eb77fa6390
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