vboxsf: don't allow to change the inode type
[linux-2.6-microblaze.git] / fs / vboxsf / super.c
index d7816c0..4f5e59f 100644 (file)
@@ -207,7 +207,7 @@ static int vboxsf_fill_super(struct super_block *sb, struct fs_context *fc)
                err = -ENOMEM;
                goto fail_unmap;
        }
-       vboxsf_init_inode(sbi, iroot, &sbi->root_info);
+       vboxsf_init_inode(sbi, iroot, &sbi->root_info, false);
        unlock_new_inode(iroot);
 
        droot = d_make_root(iroot);
@@ -418,7 +418,7 @@ static int vboxsf_reconfigure(struct fs_context *fc)
 
        /* Apply changed options to the root inode */
        sbi->o = ctx->o;
-       vboxsf_init_inode(sbi, iroot, &sbi->root_info);
+       vboxsf_init_inode(sbi, iroot, &sbi->root_info, true);
 
        return 0;
 }