aboutsummaryrefslogtreecommitdiffstats
path: root/fs/fat/inode.c
diff options
context:
space:
mode:
Diffstat (limited to 'fs/fat/inode.c')
-rw-r--r--fs/fat/inode.c21
1 files changed, 15 insertions, 6 deletions
diff --git a/fs/fat/inode.c b/fs/fat/inode.c
index 8ccee8415488..96ae85b67eba 100644
--- a/fs/fat/inode.c
+++ b/fs/fat/inode.c
@@ -1327,16 +1327,25 @@ out_fail:
1327EXPORT_SYMBOL(fat_fill_super); 1327EXPORT_SYMBOL(fat_fill_super);
1328 1328
1329int __init fat_cache_init(void); 1329int __init fat_cache_init(void);
1330void __exit fat_cache_destroy(void); 1330void fat_cache_destroy(void);
1331 1331
1332static int __init init_fat_fs(void) 1332static int __init init_fat_fs(void)
1333{ 1333{
1334 int ret; 1334 int err;
1335 1335
1336 ret = fat_cache_init(); 1336 err = fat_cache_init();
1337 if (ret < 0) 1337 if (err)
1338 return ret; 1338 return err;
1339 return fat_init_inodecache(); 1339
1340 err = fat_init_inodecache();
1341 if (err)
1342 goto failed;
1343
1344 return 0;
1345
1346failed:
1347 fat_cache_destroy();
1348 return err;
1340} 1349}
1341 1350
1342static void __exit exit_fat_fs(void) 1351static void __exit exit_fat_fs(void)