aboutsummaryrefslogtreecommitdiffstats
path: root/fs/btrfs/super.c
diff options
context:
space:
mode:
Diffstat (limited to 'fs/btrfs/super.c')
-rw-r--r--fs/btrfs/super.c8
1 files changed, 5 insertions, 3 deletions
diff --git a/fs/btrfs/super.c b/fs/btrfs/super.c
index 09908f25fca9..84c3b66564d0 100644
--- a/fs/btrfs/super.c
+++ b/fs/btrfs/super.c
@@ -58,14 +58,15 @@ static struct super_operations btrfs_super_ops;
58static void btrfs_put_super (struct super_block * sb) 58static void btrfs_put_super (struct super_block * sb)
59{ 59{
60 struct btrfs_root *root = btrfs_sb(sb); 60 struct btrfs_root *root = btrfs_sb(sb);
61 struct btrfs_fs_info *fs = root->fs_info;
62 int ret; 61 int ret;
63 62
64 ret = close_ctree(root); 63 ret = close_ctree(root);
65 if (ret) { 64 if (ret) {
66 printk("close ctree returns %d\n", ret); 65 printk("close ctree returns %d\n", ret);
67 } 66 }
68 btrfs_sysfs_del_super(fs); 67#if 0
68 btrfs_sysfs_del_super(root->fs_info);
69#endif
69 sb->s_fs_info = NULL; 70 sb->s_fs_info = NULL;
70} 71}
71 72
@@ -349,11 +350,12 @@ static int btrfs_fill_super(struct super_block * sb,
349 err = -ENOMEM; 350 err = -ENOMEM;
350 goto fail_close; 351 goto fail_close;
351 } 352 }
352 353#if 0
353 /* this does the super kobj at the same time */ 354 /* this does the super kobj at the same time */
354 err = btrfs_sysfs_add_super(tree_root->fs_info); 355 err = btrfs_sysfs_add_super(tree_root->fs_info);
355 if (err) 356 if (err)
356 goto fail_close; 357 goto fail_close;
358#endif
357 359
358 sb->s_root = root_dentry; 360 sb->s_root = root_dentry;
359 361