summaryrefslogtreecommitdiffstats
path: root/fs
diff options
context:
space:
mode:
authorDavid Sterba <dsterba@suse.com>2016-04-27 01:02:15 +0200
committerDavid Sterba <dsterba@suse.com>2016-04-29 11:01:47 +0200
commit7ab5cb2a9e3161de3a288bafd100515b5f44f27e (patch)
treed1970d9faf78323a4d5fbe21208273df45481916 /fs
parentb5a4ba14e0caa9da1b3b98939274bdeda71859e3 (diff)
downloadlinux-7ab5cb2a9e3161de3a288bafd100515b5f44f27e.tar.gz
linux-7ab5cb2a9e3161de3a288bafd100515b5f44f27e.tar.bz2
linux-7ab5cb2a9e3161de3a288bafd100515b5f44f27e.zip
btrfs: untangle gotos a bit in __clear_extent_bit
Signed-off-by: David Sterba <dsterba@suse.com>
Diffstat (limited to 'fs')
-rw-r--r--fs/btrfs/extent_io.c16
1 files changed, 8 insertions, 8 deletions
diff --git a/fs/btrfs/extent_io.c b/fs/btrfs/extent_io.c
index f5eda54e225f..3ecd8b1f239f 100644
--- a/fs/btrfs/extent_io.c
+++ b/fs/btrfs/extent_io.c
@@ -726,14 +726,6 @@ next:
start = last_end + 1;
if (start <= end && state && !need_resched())
goto hit_next;
- goto search_again;
-
-out:
- spin_unlock(&tree->lock);
- if (prealloc)
- free_extent_state(prealloc);
-
- return 0;
search_again:
if (start > end)
@@ -742,6 +734,14 @@ search_again:
if (gfpflags_allow_blocking(mask))
cond_resched();
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,