diff options
author | David Sterba <dsterba@suse.com> | 2016-04-27 01:02:15 +0200 |
---|---|---|
committer | David Sterba <dsterba@suse.com> | 2016-04-29 11:01:47 +0200 |
commit | 03bf5387708069194fbe5072fb57f9542e7a8b82 (patch) | |
tree | dbc742dbda83e57751ad6889a4c351d0e6fc134b /fs | |
parent | 7ab5cb2a9e3161de3a288bafd100515b5f44f27e (diff) | |
download | blackbird-op-linux-03bf5387708069194fbe5072fb57f9542e7a8b82.tar.gz blackbird-op-linux-03bf5387708069194fbe5072fb57f9542e7a8b82.zip |
btrfs: untangle gotos a bit in convert_extent_bit
Signed-off-by: David Sterba <dsterba@suse.com>
Diffstat (limited to 'fs')
-rw-r--r-- | fs/btrfs/extent_io.c | 16 |
1 files changed, 7 insertions, 9 deletions
diff --git a/fs/btrfs/extent_io.c b/fs/btrfs/extent_io.c index 3ecd8b1f239f..d39e2241ceb7 100644 --- a/fs/btrfs/extent_io.c +++ b/fs/btrfs/extent_io.c @@ -1262,15 +1262,6 @@ hit_next: goto out; } - goto search_again; - -out: - spin_unlock(&tree->lock); - if (prealloc) - free_extent_state(prealloc); - - return err; - search_again: if (start > end) goto out; @@ -1279,6 +1270,13 @@ search_again: cond_resched(); first_iteration = false; goto again; + +out: + spin_unlock(&tree->lock); + if (prealloc) + free_extent_state(prealloc); + + return err; } /* wrappers around set/clear extent bit */ |