diff options
Diffstat (limited to 'fs/ntfs')
-rw-r--r-- | fs/ntfs/super.c | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/fs/ntfs/super.c b/fs/ntfs/super.c index 28d4e6ab6634..b341492542ca 100644 --- a/fs/ntfs/super.c +++ b/fs/ntfs/super.c | |||
@@ -2908,9 +2908,10 @@ static int ntfs_fill_super(struct super_block *sb, void *opt, const int silent) | |||
2908 | ntfs_error(sb, "Failed to load system files."); | 2908 | ntfs_error(sb, "Failed to load system files."); |
2909 | goto unl_upcase_iput_tmp_ino_err_out_now; | 2909 | goto unl_upcase_iput_tmp_ino_err_out_now; |
2910 | } | 2910 | } |
2911 | if ((sb->s_root = d_alloc_root(vol->root_ino))) { | 2911 | |
2912 | /* We grab a reference, simulating an ntfs_iget(). */ | 2912 | /* We grab a reference, simulating an ntfs_iget(). */ |
2913 | ihold(vol->root_ino); | 2913 | ihold(vol->root_ino); |
2914 | if ((sb->s_root = d_make_root(vol->root_ino))) { | ||
2914 | ntfs_debug("Exiting, status successful."); | 2915 | ntfs_debug("Exiting, status successful."); |
2915 | /* Release the default upcase if it has no users. */ | 2916 | /* Release the default upcase if it has no users. */ |
2916 | mutex_lock(&ntfs_lock); | 2917 | mutex_lock(&ntfs_lock); |
@@ -3158,6 +3159,8 @@ static int __init init_ntfs_fs(void) | |||
3158 | } | 3159 | } |
3159 | printk(KERN_CRIT "NTFS: Failed to register NTFS filesystem driver!\n"); | 3160 | printk(KERN_CRIT "NTFS: Failed to register NTFS filesystem driver!\n"); |
3160 | 3161 | ||
3162 | /* Unregister the ntfs sysctls. */ | ||
3163 | ntfs_sysctl(0); | ||
3161 | sysctl_err_out: | 3164 | sysctl_err_out: |
3162 | kmem_cache_destroy(ntfs_big_inode_cache); | 3165 | kmem_cache_destroy(ntfs_big_inode_cache); |
3163 | big_inode_err_out: | 3166 | big_inode_err_out: |