aboutsummaryrefslogtreecommitdiffstats
path: root/fs
diff options
context:
space:
mode:
authorBalaji Rao <balajirrao@gmail.com>2008-07-24 12:17:15 -0400
committerChris Mason <chris.mason@oracle.com>2008-09-25 11:04:05 -0400
commit45467261edb590fd5a2d676d9686edb82762fb3f (patch)
treef658a44ef2c06b8f6af6e6af85b2c960a87e840e /fs
parent8e8a1e31f2780b7865d40a8c5142a04f2bcdcb86 (diff)
Btrfs: Remove unused variable in fixup_tree_root_location
Remove a unused variable 'path' in fixup_tree_root_location. Signed-off-by: Balaji Rao <balajirrao@gmail.com> Signed-off-by: Chris Mason <chris.mason@oracle.com>
Diffstat (limited to 'fs')
-rw-r--r--fs/btrfs/inode.c5
1 files changed, 0 insertions, 5 deletions
diff --git a/fs/btrfs/inode.c b/fs/btrfs/inode.c
index 0c9ec8aa304a..8bc981c4f5ef 100644
--- a/fs/btrfs/inode.c
+++ b/fs/btrfs/inode.c
@@ -1805,7 +1805,6 @@ static int fixup_tree_root_location(struct btrfs_root *root,
1805 struct btrfs_root **sub_root, 1805 struct btrfs_root **sub_root,
1806 struct dentry *dentry) 1806 struct dentry *dentry)
1807{ 1807{
1808 struct btrfs_path *path;
1809 struct btrfs_root_item *ri; 1808 struct btrfs_root_item *ri;
1810 1809
1811 if (btrfs_key_type(location) != BTRFS_ROOT_ITEM_KEY) 1810 if (btrfs_key_type(location) != BTRFS_ROOT_ITEM_KEY)
@@ -1813,9 +1812,6 @@ static int fixup_tree_root_location(struct btrfs_root *root,
1813 if (location->objectid == BTRFS_ROOT_TREE_OBJECTID) 1812 if (location->objectid == BTRFS_ROOT_TREE_OBJECTID)
1814 return 0; 1813 return 0;
1815 1814
1816 path = btrfs_alloc_path();
1817 BUG_ON(!path);
1818
1819 *sub_root = btrfs_read_fs_root(root->fs_info, location, 1815 *sub_root = btrfs_read_fs_root(root->fs_info, location,
1820 dentry->d_name.name, 1816 dentry->d_name.name,
1821 dentry->d_name.len); 1817 dentry->d_name.len);
@@ -1827,7 +1823,6 @@ static int fixup_tree_root_location(struct btrfs_root *root,
1827 btrfs_set_key_type(location, BTRFS_INODE_ITEM_KEY); 1823 btrfs_set_key_type(location, BTRFS_INODE_ITEM_KEY);
1828 location->offset = 0; 1824 location->offset = 0;
1829 1825
1830 btrfs_free_path(path);
1831 return 0; 1826 return 0;
1832} 1827}
1833 1828