]> git.baikalelectronics.ru Git - kernel.git/commit
btrfs: simplify error handling in __btrfs_write_out_cache()
authorJohannes Thumshirn <johannes.thumshirn@wdc.com>
Tue, 11 Feb 2020 15:10:22 +0000 (00:10 +0900)
committerDavid Sterba <dsterba@suse.com>
Mon, 23 Mar 2020 16:01:43 +0000 (17:01 +0100)
commit934cd966f74d8f20582fa054d8c4078fe7162a93
tree89539b4f6790f4422e9cd073cee54f3f09bd09f6
parente1e8e7260bd329648e81a1fe841dcbca2f5b7ffb
btrfs: simplify error handling in __btrfs_write_out_cache()

The error cleanup gotos in __btrfs_write_out_cache() needlessly jump
back making the code less readable then needed.  Flatten them out so no
back-jump is necessary and the read flow is uninterrupted.

Reviewed-by: Josef Bacik <josef@toxicpanda.com>
Signed-off-by: Johannes Thumshirn <johannes.thumshirn@wdc.com>
Reviewed-by: David Sterba <dsterba@suse.com>
Signed-off-by: David Sterba <dsterba@suse.com>
fs/btrfs/free-space-cache.c