mirror of
https://github.com/torvalds/linux.git
synced 2024-11-27 06:31:52 +00:00
btrfs: untangle gotos a bit in __set_extent_bit
Signed-off-by: David Sterba <dsterba@suse.com>
This commit is contained in:
parent
2c53b912ae
commit
b5a4ba14e0
@ -1037,7 +1037,13 @@ hit_next:
|
||||
goto out;
|
||||
}
|
||||
|
||||
goto search_again;
|
||||
search_again:
|
||||
if (start > end)
|
||||
goto out;
|
||||
spin_unlock(&tree->lock);
|
||||
if (gfpflags_allow_blocking(mask))
|
||||
cond_resched();
|
||||
goto again;
|
||||
|
||||
out:
|
||||
spin_unlock(&tree->lock);
|
||||
@ -1046,13 +1052,6 @@ out:
|
||||
|
||||
return err;
|
||||
|
||||
search_again:
|
||||
if (start > end)
|
||||
goto out;
|
||||
spin_unlock(&tree->lock);
|
||||
if (gfpflags_allow_blocking(mask))
|
||||
cond_resched();
|
||||
goto again;
|
||||
}
|
||||
|
||||
int set_extent_bit(struct extent_io_tree *tree, u64 start, u64 end,
|
||||
|
Loading…
Reference in New Issue
Block a user