diff options
Diffstat (limited to 'fs/configfs/mount.c')
| -rw-r--r-- | fs/configfs/mount.c | 11 |
1 files changed, 2 insertions, 9 deletions
diff --git a/fs/configfs/mount.c b/fs/configfs/mount.c index f6c285833390..da94e41bdbf6 100644 --- a/fs/configfs/mount.c +++ b/fs/configfs/mount.c | |||
| @@ -145,19 +145,13 @@ static int __init configfs_init(void) | |||
| 145 | if (!config_kobj) | 145 | if (!config_kobj) |
| 146 | goto out2; | 146 | goto out2; |
| 147 | 147 | ||
| 148 | err = configfs_inode_init(); | ||
| 149 | if (err) | ||
| 150 | goto out3; | ||
| 151 | |||
| 152 | err = register_filesystem(&configfs_fs_type); | 148 | err = register_filesystem(&configfs_fs_type); |
| 153 | if (err) | 149 | if (err) |
| 154 | goto out4; | 150 | goto out3; |
| 155 | 151 | ||
| 156 | return 0; | 152 | return 0; |
| 157 | out4: | ||
| 158 | pr_err("Unable to register filesystem!\n"); | ||
| 159 | configfs_inode_exit(); | ||
| 160 | out3: | 153 | out3: |
| 154 | pr_err("Unable to register filesystem!\n"); | ||
| 161 | kobject_put(config_kobj); | 155 | kobject_put(config_kobj); |
| 162 | out2: | 156 | out2: |
| 163 | kmem_cache_destroy(configfs_dir_cachep); | 157 | kmem_cache_destroy(configfs_dir_cachep); |
| @@ -172,7 +166,6 @@ static void __exit configfs_exit(void) | |||
| 172 | kobject_put(config_kobj); | 166 | kobject_put(config_kobj); |
| 173 | kmem_cache_destroy(configfs_dir_cachep); | 167 | kmem_cache_destroy(configfs_dir_cachep); |
| 174 | configfs_dir_cachep = NULL; | 168 | configfs_dir_cachep = NULL; |
| 175 | configfs_inode_exit(); | ||
| 176 | } | 169 | } |
| 177 | 170 | ||
| 178 | MODULE_AUTHOR("Oracle"); | 171 | MODULE_AUTHOR("Oracle"); |
