aboutsummaryrefslogtreecommitdiffstats
path: root/fs/adfs/super.c
diff options
context:
space:
mode:
Diffstat (limited to 'fs/adfs/super.c')
-rw-r--r--fs/adfs/super.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/fs/adfs/super.c b/fs/adfs/super.c
index 82011019494c..9ade139086fc 100644
--- a/fs/adfs/super.c
+++ b/fs/adfs/super.c
@@ -251,8 +251,7 @@ static int init_inodecache(void)
251 251
252static void destroy_inodecache(void) 252static void destroy_inodecache(void)
253{ 253{
254 if (kmem_cache_destroy(adfs_inode_cachep)) 254 kmem_cache_destroy(adfs_inode_cachep);
255 printk(KERN_INFO "adfs_inode_cache: not all structures were freed\n");
256} 255}
257 256
258static struct super_operations adfs_sops = { 257static struct super_operations adfs_sops = {
@@ -339,11 +338,10 @@ static int adfs_fill_super(struct super_block *sb, void *data, int silent)
339 338
340 sb->s_flags |= MS_NODIRATIME; 339 sb->s_flags |= MS_NODIRATIME;
341 340
342 asb = kmalloc(sizeof(*asb), GFP_KERNEL); 341 asb = kzalloc(sizeof(*asb), GFP_KERNEL);
343 if (!asb) 342 if (!asb)
344 return -ENOMEM; 343 return -ENOMEM;
345 sb->s_fs_info = asb; 344 sb->s_fs_info = asb;
346 memset(asb, 0, sizeof(*asb));
347 345
348 /* set default options */ 346 /* set default options */
349 asb->s_uid = 0; 347 asb->s_uid = 0;