projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
90d3e59
)
Btrfs: fix spin_unlock in check_ref_cleanup
author
Chris Mason
<clm@fb.com>
Wed, 29 Jan 2014 15:02:40 +0000
(07:02 -0800)
committer
Chris Mason
<clm@fb.com>
Wed, 29 Jan 2014 15:06:31 +0000
(07:06 -0800)
Our goto out should have gone a little farther.
Signed-off-by: Chris Mason <clm@fb.com>
fs/btrfs/extent-tree.c
patch
|
blob
|
history
diff --git
a/fs/btrfs/extent-tree.c
b/fs/btrfs/extent-tree.c
index 73b55d94b95301a9bdce64964bf6757d202d094d..9c9ecc93ae2c3152d85cb2e15eeabd7bec95160f 100644
(file)
--- a/
fs/btrfs/extent-tree.c
+++ b/
fs/btrfs/extent-tree.c
@@
-5893,7
+5893,7
@@
static noinline int check_ref_cleanup(struct btrfs_trans_handle *trans,
spin_lock(&delayed_refs->lock);
head = btrfs_find_delayed_ref_head(trans, bytenr);
if (!head)
- goto out;
+ goto out
_delayed_unlock
;
spin_lock(&head->lock);
if (rb_first(&head->ref_root))
@@
-5942,6
+5942,8
@@
static noinline int check_ref_cleanup(struct btrfs_trans_handle *trans,
return ret;
out:
spin_unlock(&head->lock);
+
+out_delayed_unlock:
spin_unlock(&delayed_refs->lock);
return 0;
}