aboutsummaryrefslogtreecommitdiff
path: root/fs/btrfs/super.c
diff options
context:
space:
mode:
authorAl Viro2011-11-17 15:57:57 -0500
committerAl Viro2012-01-08 19:37:02 -0500
commitf84a8bd60e3ee49eacc9ba824babf149ba3dad7e (patch)
tree8c2eeefe7660147385bfd6f7f36457c58025fe84 /fs/btrfs/super.c
parent815745cf3e46681241ad8025602ffbf2a452d514 (diff)
btrfs: take allocation of ->tree_root into open_ctree()
now that we don't need it for sget() anymore... Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
Diffstat (limited to 'fs/btrfs/super.c')
-rw-r--r--fs/btrfs/super.c5
1 files changed, 0 insertions, 5 deletions
diff --git a/fs/btrfs/super.c b/fs/btrfs/super.c
index 305adf6dc09a..044652ee7ef5 100644
--- a/fs/btrfs/super.c
+++ b/fs/btrfs/super.c
@@ -899,11 +899,6 @@ static struct dentry *btrfs_mount(struct file_system_type *fs_type, int flags,
if (!fs_info)
return ERR_PTR(-ENOMEM);
- fs_info->tree_root = btrfs_alloc_root(fs_info);
- if (!fs_info->tree_root) {
- error = -ENOMEM;
- goto error_fs_info;
- }
fs_info->fs_devices = fs_devices;
fs_info->super_copy = kzalloc(BTRFS_SUPER_INFO_SIZE, GFP_NOFS);