OSDN Git Service

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)
commitfd8efa818c55300ffb69c11e573c5ed18cda541c
tree89539b4f6790f4422e9cd073cee54f3f09bd09f6
parent1afb648e94542863c6affd3b8c10d8d3011a6dcb
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