Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 361004
b: refs/heads/master
c: 2881894
h: refs/heads/master
v: v3
  • Loading branch information
Liu Bo authored and Josef Bacik committed Mar 4, 2013
1 parent 5d391d2 commit 3d0ca17
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 2 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: e1a1267054ea9dcafd01636e52d441f809efad5e
refs/heads/master: 288189471d7e12fb22c37870e151833f438deea8
10 changes: 9 additions & 1 deletion trunk/fs/btrfs/relocation.c
Original file line number Diff line number Diff line change
Expand Up @@ -3731,7 +3731,15 @@ int prepare_to_relocate(struct reloc_control *rc)
set_reloc_control(rc);

trans = btrfs_join_transaction(rc->extent_root);
BUG_ON(IS_ERR(trans));
if (IS_ERR(trans)) {
unset_reloc_control(rc);
/*
* extent tree is not a ref_cow tree and has no reloc_root to
* cleanup. And callers are responsible to free the above
* block rsv.
*/
return PTR_ERR(trans);
}
btrfs_commit_transaction(trans, rc->extent_root);
return 0;
}
Expand Down

0 comments on commit 3d0ca17

Please sign in to comment.