Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 128853
b: refs/heads/master
c: 4546726
h: refs/heads/master
i:
  128851: d5afe99
v: v3
  • Loading branch information
Balaji Rao authored and Chris Mason committed Sep 25, 2008
1 parent 12d704e commit 43c9175
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 6 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: 8e8a1e31f2780b7865d40a8c5142a04f2bcdcb86
refs/heads/master: 45467261edb590fd5a2d676d9686edb82762fb3f
5 changes: 0 additions & 5 deletions trunk/fs/btrfs/inode.c
Original file line number Diff line number Diff line change
Expand Up @@ -1805,17 +1805,13 @@ static int fixup_tree_root_location(struct btrfs_root *root,
struct btrfs_root **sub_root,
struct dentry *dentry)
{
struct btrfs_path *path;
struct btrfs_root_item *ri;

if (btrfs_key_type(location) != BTRFS_ROOT_ITEM_KEY)
return 0;
if (location->objectid == BTRFS_ROOT_TREE_OBJECTID)
return 0;

path = btrfs_alloc_path();
BUG_ON(!path);

*sub_root = btrfs_read_fs_root(root->fs_info, location,
dentry->d_name.name,
dentry->d_name.len);
Expand All @@ -1827,7 +1823,6 @@ static int fixup_tree_root_location(struct btrfs_root *root,
btrfs_set_key_type(location, BTRFS_INODE_ITEM_KEY);
location->offset = 0;

btrfs_free_path(path);
return 0;
}

Expand Down

0 comments on commit 43c9175

Please sign in to comment.