btrfs-progs: balance: cleanup, switch to common exit block
authorDavid Sterba <dsterba@suse.com>
Wed, 13 Jul 2016 17:00:01 +0000 (19:00 +0200)
committerDavid Sterba <dsterba@suse.com>
Wed, 13 Jul 2016 17:00:01 +0000 (19:00 +0200)
commit6146dc04b2ec8ac8990a331f0825ac5e218b6ab0
tree83cd578d7d515e4531dcf58a0be89f8c6d44af58
parentc3e17030055feaffaac3b9c07f0c04d2faca097a
btrfs-progs: balance: cleanup, switch to common exit block

Call close_file_or_dir at the end of the function and replace returns by
gotos to the exit block.

Signed-off-by: David Sterba <dsterba@suse.com>
cmds-balance.c