Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 361003
b: refs/heads/master
c: e1a1267
h: refs/heads/master
i:
  361001: bff1e02
  360999: ad5c319
v: v3
  • Loading branch information
Liu Bo authored and Josef Bacik committed Mar 4, 2013
1 parent b3afbd7 commit 5d391d2
Show file tree
Hide file tree
Showing 2 changed files with 7 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: aca1bba6f9bc550a33312b28e98b3de5ddb3bb15
refs/heads/master: e1a1267054ea9dcafd01636e52d441f809efad5e
9 changes: 6 additions & 3 deletions trunk/fs/btrfs/relocation.c
Original file line number Diff line number Diff line change
Expand Up @@ -2848,8 +2848,10 @@ int relocate_tree_blocks(struct btrfs_trans_handle *trans,
int err = 0;

path = btrfs_alloc_path();
if (!path)
return -ENOMEM;
if (!path) {
err = -ENOMEM;
goto out_path;
}

rb_node = rb_first(blocks);
while (rb_node) {
Expand Down Expand Up @@ -2888,10 +2890,11 @@ int relocate_tree_blocks(struct btrfs_trans_handle *trans,
rb_node = rb_next(rb_node);
}
out:
free_block_list(blocks);
err = finish_pending_nodes(trans, rc, path, err);

btrfs_free_path(path);
out_path:
free_block_list(blocks);
return err;
}

Expand Down

0 comments on commit 5d391d2

Please sign in to comment.