Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 128852
b: refs/heads/master
c: 8e8a1e3
h: refs/heads/master
v: v3
  • Loading branch information
Josef Bacik authored and Chris Mason committed Sep 25, 2008
1 parent d5afe99 commit 12d704e
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 4 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 7b1287662304c3cb05cb38f5e3e2d69f386e8f10
refs/heads/master: 8e8a1e31f2780b7865d40a8c5142a04f2bcdcb86
4 changes: 3 additions & 1 deletion trunk/fs/btrfs/extent-tree.c
Original file line number Diff line number Diff line change
Expand Up @@ -3275,8 +3275,10 @@ int btrfs_shrink_extent_tree(struct btrfs_root *root, u64 shrink_start)
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,
Expand Down
6 changes: 4 additions & 2 deletions trunk/fs/btrfs/ioctl.c
Original file line number Diff line number Diff line change
Expand Up @@ -78,8 +78,10 @@ static noinline int create_subvol(struct btrfs_root *root, char *name,
leaf = btrfs_alloc_free_block(trans, root, root->leafsize,
objectid, trans->transid, 0, 0,
0, 0);
if (IS_ERR(leaf))
return PTR_ERR(leaf);
if (IS_ERR(leaf)) {
ret = PTR_ERR(leaf);
goto fail;
}

btrfs_set_header_nritems(leaf, 0);
btrfs_set_header_level(leaf, 0);
Expand Down

0 comments on commit 12d704e

Please sign in to comment.