Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 361005
b: refs/heads/master
c: 0f788c5
h: refs/heads/master
i:
  361003: 5d391d2
v: v3
  • Loading branch information
Liu Bo authored and Josef Bacik committed Mar 4, 2013
1 parent 3d0ca17 commit 945d75f
Show file tree
Hide file tree
Showing 3 changed files with 13 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: 288189471d7e12fb22c37870e151833f438deea8
refs/heads/master: 0f788c58194e4ccc5b3ab23f872c5e18542335e4
6 changes: 5 additions & 1 deletion trunk/fs/btrfs/relocation.c
Original file line number Diff line number Diff line change
Expand Up @@ -3771,7 +3771,11 @@ static noinline_for_stack int relocate_block_group(struct reloc_control *rc)
while (1) {
progress++;
trans = btrfs_start_transaction(rc->extent_root, 0);
BUG_ON(IS_ERR(trans));
if (IS_ERR(trans)) {
err = PTR_ERR(trans);
trans = NULL;
break;
}
restart:
if (update_backref_cache(trans, &rc->backref_cache)) {
btrfs_end_transaction(trans, rc->extent_root);
Expand Down
9 changes: 7 additions & 2 deletions trunk/fs/btrfs/volumes.c
Original file line number Diff line number Diff line change
Expand Up @@ -2379,7 +2379,11 @@ static int btrfs_relocate_chunk(struct btrfs_root *root,
return ret;

trans = btrfs_start_transaction(root, 0);
BUG_ON(IS_ERR(trans));
if (IS_ERR(trans)) {
ret = PTR_ERR(trans);
btrfs_std_error(root->fs_info, ret);
return ret;
}

lock_chunks(root);

Expand Down Expand Up @@ -3050,7 +3054,8 @@ static void __cancel_balance(struct btrfs_fs_info *fs_info)

unset_balance_control(fs_info);
ret = del_balance_item(fs_info->tree_root);
BUG_ON(ret);
if (ret)
btrfs_std_error(fs_info, ret);

atomic_set(&fs_info->mutually_exclusive_operation_running, 0);
}
Expand Down

0 comments on commit 945d75f

Please sign in to comment.