projects
/
platform
/
kernel
/
linux-rpi.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
7ab5cb2
)
btrfs: untangle gotos a bit in convert_extent_bit
author
David Sterba
<dsterba@suse.com>
Tue, 26 Apr 2016 23:02:15 +0000
(
01:02
+0200)
committer
David Sterba
<dsterba@suse.com>
Fri, 29 Apr 2016 09:01:47 +0000
(11:01 +0200)
Signed-off-by: David Sterba <dsterba@suse.com>
fs/btrfs/extent_io.c
patch
|
blob
|
history
diff --git
a/fs/btrfs/extent_io.c
b/fs/btrfs/extent_io.c
index
3ecd8b1
..
d39e224
100644
(file)
--- 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 */