提交 45467261 编写于 作者: B Balaji Rao 提交者: Chris Mason

Btrfs: Remove unused variable in fixup_tree_root_location

Remove a unused variable 'path' in fixup_tree_root_location.
Signed-off-by: NBalaji Rao <balajirrao@gmail.com>
Signed-off-by: NChris Mason <chris.mason@oracle.com>
上级 8e8a1e31
...@@ -1805,7 +1805,6 @@ static int fixup_tree_root_location(struct btrfs_root *root, ...@@ -1805,7 +1805,6 @@ static int fixup_tree_root_location(struct btrfs_root *root,
struct btrfs_root **sub_root, struct btrfs_root **sub_root,
struct dentry *dentry) struct dentry *dentry)
{ {
struct btrfs_path *path;
struct btrfs_root_item *ri; struct btrfs_root_item *ri;
if (btrfs_key_type(location) != BTRFS_ROOT_ITEM_KEY) if (btrfs_key_type(location) != BTRFS_ROOT_ITEM_KEY)
...@@ -1813,9 +1812,6 @@ static int fixup_tree_root_location(struct btrfs_root *root, ...@@ -1813,9 +1812,6 @@ static int fixup_tree_root_location(struct btrfs_root *root,
if (location->objectid == BTRFS_ROOT_TREE_OBJECTID) if (location->objectid == BTRFS_ROOT_TREE_OBJECTID)
return 0; return 0;
path = btrfs_alloc_path();
BUG_ON(!path);
*sub_root = btrfs_read_fs_root(root->fs_info, location, *sub_root = btrfs_read_fs_root(root->fs_info, location,
dentry->d_name.name, dentry->d_name.name,
dentry->d_name.len); dentry->d_name.len);
...@@ -1827,7 +1823,6 @@ static int fixup_tree_root_location(struct btrfs_root *root, ...@@ -1827,7 +1823,6 @@ static int fixup_tree_root_location(struct btrfs_root *root,
btrfs_set_key_type(location, BTRFS_INODE_ITEM_KEY); btrfs_set_key_type(location, BTRFS_INODE_ITEM_KEY);
location->offset = 0; location->offset = 0;
btrfs_free_path(path);
return 0; return 0;
} }
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册