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/efs/super.c | |
| parent | 3f1a9aaeffd8d1cbc5ab9776c45cbd66af1c9699 (diff) | |
| parent | a77c64c1a641950626181b4857abb701d8f38ccc (diff) | |
Merge branch 'master' into gfs2
Diffstat (limited to 'fs/efs/super.c')
| -rw-r--r-- | fs/efs/super.c | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/fs/efs/super.c b/fs/efs/super.c index 8ac2462ae5dd..b3f50651eb6b 100644 --- a/fs/efs/super.c +++ b/fs/efs/super.c | |||
| @@ -90,8 +90,7 @@ static int init_inodecache(void) | |||
| 90 | 90 | ||
| 91 | static void destroy_inodecache(void) | 91 | static void destroy_inodecache(void) |
| 92 | { | 92 | { |
| 93 | if (kmem_cache_destroy(efs_inode_cachep)) | 93 | kmem_cache_destroy(efs_inode_cachep); |
| 94 | printk(KERN_INFO "efs_inode_cache: not all structures were freed\n"); | ||
| 95 | } | 94 | } |
| 96 | 95 | ||
| 97 | static void efs_put_super(struct super_block *s) | 96 | static void efs_put_super(struct super_block *s) |
| @@ -248,11 +247,10 @@ static int efs_fill_super(struct super_block *s, void *d, int silent) | |||
| 248 | struct buffer_head *bh; | 247 | struct buffer_head *bh; |
| 249 | struct inode *root; | 248 | struct inode *root; |
| 250 | 249 | ||
| 251 | sb = kmalloc(sizeof(struct efs_sb_info), GFP_KERNEL); | 250 | sb = kzalloc(sizeof(struct efs_sb_info), GFP_KERNEL); |
| 252 | if (!sb) | 251 | if (!sb) |
| 253 | return -ENOMEM; | 252 | return -ENOMEM; |
| 254 | s->s_fs_info = sb; | 253 | s->s_fs_info = sb; |
| 255 | memset(sb, 0, sizeof(struct efs_sb_info)); | ||
| 256 | 254 | ||
| 257 | s->s_magic = EFS_SUPER_MAGIC; | 255 | s->s_magic = EFS_SUPER_MAGIC; |
| 258 | if (!sb_set_blocksize(s, EFS_BLOCKSIZE)) { | 256 | if (!sb_set_blocksize(s, EFS_BLOCKSIZE)) { |
