aboutsummaryrefslogtreecommitdiff
path: root/fs/btrfs/extent-tree.c
diff options
context:
space:
mode:
authorJosef Bacik <jbacik@redhat.com>2008-07-24 12:17:14 -0400
committerChris Mason <chris.mason@oracle.com>2008-09-25 11:04:05 -0400
commit8e8a1e31f2780b7865d40a8c5142a04f2bcdcb86 (patch)
tree6fe03f25b1cc33f2c881ffd5e54b7e82335c9098 /fs/btrfs/extent-tree.c
parent7b1287662304c3cb05cb38f5e3e2d69f386e8f10 (diff)
Btrfs: Fix a few functions that exit without stopping their transaction
Signed-off-by: Chris Mason <chris.mason@oracle.com>
Diffstat (limited to 'fs/btrfs/extent-tree.c')
-rw-r--r--fs/btrfs/extent-tree.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/fs/btrfs/extent-tree.c b/fs/btrfs/extent-tree.c
index f92b297e7da..e6a3ba9dd10 100644
--- a/fs/btrfs/extent-tree.c
+++ b/fs/btrfs/extent-tree.c
@@ -3275,8 +3275,10 @@ next:
ret = btrfs_search_slot(trans, root, &key, path, -1, 1);
if (ret > 0)
ret = -EIO;
- if (ret < 0)
+ if (ret < 0) {
+ btrfs_end_transaction(trans, root);
goto out;
+ }
clear_extent_bits(&info->block_group_cache, key.objectid,
key.objectid + key.offset - 1,