mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-13 08:07:32 -04:00
btrfs: untangle gotos a bit in convert_extent_bit
Signed-off-by: David Sterba <dsterba@suse.com>
This commit is contained in:
parent
7ab5cb2a9e
commit
03bf538770
1 changed files with 7 additions and 9 deletions
|
|
@ -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 */
|
||||
|
|
|
|||
Loading…
Reference in a new issue