btrfs: untangle gotos a bit in __clear_extent_bit
Signed-off-by: David Sterba <dsterba@suse.com>
This commit is contained in:
parent
b5a4ba14e0
commit
7ab5cb2a9e
@ -726,14 +726,6 @@ next:
|
|||||||
start = last_end + 1;
|
start = last_end + 1;
|
||||||
if (start <= end && state && !need_resched())
|
if (start <= end && state && !need_resched())
|
||||||
goto hit_next;
|
goto hit_next;
|
||||||
goto search_again;
|
|
||||||
|
|
||||||
out:
|
|
||||||
spin_unlock(&tree->lock);
|
|
||||||
if (prealloc)
|
|
||||||
free_extent_state(prealloc);
|
|
||||||
|
|
||||||
return 0;
|
|
||||||
|
|
||||||
search_again:
|
search_again:
|
||||||
if (start > end)
|
if (start > end)
|
||||||
@ -742,6 +734,14 @@ search_again:
|
|||||||
if (gfpflags_allow_blocking(mask))
|
if (gfpflags_allow_blocking(mask))
|
||||||
cond_resched();
|
cond_resched();
|
||||||
goto again;
|
goto again;
|
||||||
|
|
||||||
|
out:
|
||||||
|
spin_unlock(&tree->lock);
|
||||||
|
if (prealloc)
|
||||||
|
free_extent_state(prealloc);
|
||||||
|
|
||||||
|
return 0;
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
static void wait_on_state(struct extent_io_tree *tree,
|
static void wait_on_state(struct extent_io_tree *tree,
|
||||||
|
Loading…
Reference in New Issue
Block a user