diff options
author | Steven Whitehouse <swhiteho@redhat.com> | 2006-09-28 08:29:59 -0400 |
---|---|---|
committer | Steven Whitehouse <swhiteho@redhat.com> | 2006-09-28 08:29:59 -0400 |
commit | 185a257f2f73bcd89050ad02da5bedbc28fc43fa (patch) | |
tree | 5e32586114534ed3f2165614cba3d578f5d87307 /fs/hpfs/super.c | |
parent | 3f1a9aaeffd8d1cbc5ab9776c45cbd66af1c9699 (diff) | |
parent | a77c64c1a641950626181b4857abb701d8f38ccc (diff) |
Merge branch 'master' into gfs2
Diffstat (limited to 'fs/hpfs/super.c')
-rw-r--r-- | fs/hpfs/super.c | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/fs/hpfs/super.c b/fs/hpfs/super.c index 8fe51c343786..450b5e0b4785 100644 --- a/fs/hpfs/super.c +++ b/fs/hpfs/super.c | |||
@@ -203,8 +203,7 @@ static int init_inodecache(void) | |||
203 | 203 | ||
204 | static void destroy_inodecache(void) | 204 | static void destroy_inodecache(void) |
205 | { | 205 | { |
206 | if (kmem_cache_destroy(hpfs_inode_cachep)) | 206 | kmem_cache_destroy(hpfs_inode_cachep); |
207 | printk(KERN_INFO "hpfs_inode_cache: not all structures were freed\n"); | ||
208 | } | 207 | } |
209 | 208 | ||
210 | /* | 209 | /* |
@@ -462,11 +461,10 @@ static int hpfs_fill_super(struct super_block *s, void *options, int silent) | |||
462 | 461 | ||
463 | int o; | 462 | int o; |
464 | 463 | ||
465 | sbi = kmalloc(sizeof(*sbi), GFP_KERNEL); | 464 | sbi = kzalloc(sizeof(*sbi), GFP_KERNEL); |
466 | if (!sbi) | 465 | if (!sbi) |
467 | return -ENOMEM; | 466 | return -ENOMEM; |
468 | s->s_fs_info = sbi; | 467 | s->s_fs_info = sbi; |
469 | memset(sbi, 0, sizeof(*sbi)); | ||
470 | 468 | ||
471 | sbi->sb_bmp_dir = NULL; | 469 | sbi->sb_bmp_dir = NULL; |
472 | sbi->sb_cp_table = NULL; | 470 | sbi->sb_cp_table = NULL; |