aboutsummaryrefslogtreecommitdiffstats
path: root/fs/nilfs2/super.c
diff options
context:
space:
mode:
Diffstat (limited to 'fs/nilfs2/super.c')
-rw-r--r--fs/nilfs2/super.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/fs/nilfs2/super.c b/fs/nilfs2/super.c
index 9f4913f78408..51576b4dbf7a 100644
--- a/fs/nilfs2/super.c
+++ b/fs/nilfs2/super.c
@@ -167,6 +167,12 @@ struct inode *nilfs_alloc_inode(struct super_block *sb)
167 167
168void nilfs_destroy_inode(struct inode *inode) 168void nilfs_destroy_inode(struct inode *inode)
169{ 169{
170 struct nilfs_mdt_info *mdi = NILFS_MDT(inode);
171
172 if (mdi) {
173 kfree(mdi->mi_bgl); /* kfree(NULL) is safe */
174 kfree(mdi);
175 }
170 kmem_cache_free(nilfs_inode_cachep, NILFS_I(inode)); 176 kmem_cache_free(nilfs_inode_cachep, NILFS_I(inode));
171} 177}
172 178