Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 180273
b: refs/heads/master
c: d7ce584
h: refs/heads/master
i:
  180271: febb6b1
v: v3
  • Loading branch information
Miao Xie authored and Chris Mason committed Feb 4, 2010
1 parent bf262d7 commit 49c72b0
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 3 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: 014e4ac4f7d9c981750491fa40ea35efadc9ed49
refs/heads/master: d7ce5843bb28ada6845ab2ae8510ba3f12d33154
7 changes: 6 additions & 1 deletion trunk/fs/btrfs/disk-io.c
Original file line number Diff line number Diff line change
Expand Up @@ -1982,7 +1982,12 @@ struct btrfs_root *open_ctree(struct super_block *sb,

if (!(sb->s_flags & MS_RDONLY)) {
ret = btrfs_recover_relocation(tree_root);
BUG_ON(ret);
if (ret < 0) {
printk(KERN_WARNING
"btrfs: failed to recover relocation\n");
err = -EINVAL;
goto fail_trans_kthread;
}
}

location.objectid = BTRFS_FS_TREE_OBJECTID;
Expand Down
3 changes: 2 additions & 1 deletion trunk/fs/btrfs/relocation.c
Original file line number Diff line number Diff line change
Expand Up @@ -3764,7 +3764,8 @@ int btrfs_recover_relocation(struct btrfs_root *root)
BTRFS_DATA_RELOC_TREE_OBJECTID);
if (IS_ERR(fs_root))
err = PTR_ERR(fs_root);
btrfs_orphan_cleanup(fs_root);
else
btrfs_orphan_cleanup(fs_root);
}
return err;
}
Expand Down

0 comments on commit 49c72b0

Please sign in to comment.