Btrfs: Some code cleanups

Signed-off-by: Chris Mason <chris.mason@oracle.com>
This commit is contained in:
Aneesh
2007-07-11 10:03:27 -04:00
committed by David Woodhouse
parent ec6b910fb3
commit a1f396304f
2 changed files with 8 additions and 4 deletions

View File

@@ -135,8 +135,8 @@ int btrfs_find_dead_roots(struct btrfs_root *root)
if (btrfs_root_refs(ri) != 0)
goto next;
dead_root = btrfs_read_fs_root_no_radix(root->fs_info, &key);
if (IS_ERR(root)) {
ret = PTR_ERR(root);
if (IS_ERR(dead_root)) {
ret = PTR_ERR(dead_root);
goto err;
}
ret = btrfs_add_dead_root(dead_root,