diff options
Diffstat (limited to 'fs/affs/super.c')
-rw-r--r-- | fs/affs/super.c | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/fs/affs/super.c b/fs/affs/super.c index 17352011ab67..5ea72c3a16c3 100644 --- a/fs/affs/super.c +++ b/fs/affs/super.c | |||
@@ -109,8 +109,7 @@ static int init_inodecache(void) | |||
109 | 109 | ||
110 | static void destroy_inodecache(void) | 110 | static void destroy_inodecache(void) |
111 | { | 111 | { |
112 | if (kmem_cache_destroy(affs_inode_cachep)) | 112 | kmem_cache_destroy(affs_inode_cachep); |
113 | printk(KERN_INFO "affs_inode_cache: not all structures were freed\n"); | ||
114 | } | 113 | } |
115 | 114 | ||
116 | static struct super_operations affs_sops = { | 115 | static struct super_operations affs_sops = { |
@@ -280,11 +279,10 @@ static int affs_fill_super(struct super_block *sb, void *data, int silent) | |||
280 | sb->s_op = &affs_sops; | 279 | sb->s_op = &affs_sops; |
281 | sb->s_flags |= MS_NODIRATIME; | 280 | sb->s_flags |= MS_NODIRATIME; |
282 | 281 | ||
283 | sbi = kmalloc(sizeof(struct affs_sb_info), GFP_KERNEL); | 282 | sbi = kzalloc(sizeof(struct affs_sb_info), GFP_KERNEL); |
284 | if (!sbi) | 283 | if (!sbi) |
285 | return -ENOMEM; | 284 | return -ENOMEM; |
286 | sb->s_fs_info = sbi; | 285 | sb->s_fs_info = sbi; |
287 | memset(sbi, 0, sizeof(*sbi)); | ||
288 | init_MUTEX(&sbi->s_bmlock); | 286 | init_MUTEX(&sbi->s_bmlock); |
289 | 287 | ||
290 | if (!parse_options(data,&uid,&gid,&i,&reserved,&root_block, | 288 | if (!parse_options(data,&uid,&gid,&i,&reserved,&root_block, |